471,610 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

Create Login in asp.net using 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.

M
Nov 12 '05 #1
1 5224
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/
-----Original Message-----
Hi.

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

I've tried Rowfilter to find a cell with the 'username' and then matchthis with the 'Password' cell on the same row.... -> allow page toredirect 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.

M
.

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by John Lau | last post: by
reply views Thread by Amir Ghezelbash | last post: by
13 posts views Thread by Godzilla | last post: by
reply views Thread by TheDude5B | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.