all groups > dotnet xml > may 2004 >
You're in the

dotnet xml

group:

Create Login in asp.net using XML


Create Login in asp.net using XML m_skreiberg NO[at]SPAM hotmail.com
5/27/2004 5:12:32 AM
dotnet xml:
Hi.

I'm trying to create a login page in asp.net using information from an
XML document. (visual basic)

I've tried Rowfilter to find a cell with the 'username' and then match
this with the 'Password' cell on the same row.... -> allow page to
redirect if these match:

If 'username' match 'password' then "redirect to next page" else
"Error message"

Does anyone know how to create this login function?

Thank you for all help.

Create Login in asp.net using XML Sonu Kapoor
5/27/2004 8:37:13 AM
This could look something like this:

1) Create two text fields in a form.
1.1) Textfield Username
1.2) Textfield Password
2) When user presses the login button, retrieve the values
from both fields.
3) Construct a XPath query to select the required nodes.
This could look something like this:

"/UserList/User[name='sonu' AND pw='XXXX']"

4) If nodes are returned login user, otherwise show error.

hth!
Sonu

Blog: http://weblogs.asp.net/sonukapoor/

[quoted text, click to view]
AddThis Social Bookmark Button