Click here to Skip to main content
16,020,381 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
He!
I am try to do the connection between xml database and asp.net. I want to do the one simple log in form username and password, that match field with xml db file and page redirect to another page if lo-gin successfully .... so plz help me to do this ....

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 25-Mar-12 20:53pm
v2
Comments
Sushil Mate 26-Mar-12 2:35am    
xml database?
OriginalGriff 26-Mar-12 2:53am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

1 solution

Personally, I would recommend that you look a little more closely at the task you are trying to do. It is a bit more complex that "create a login page and check the name and password". In order to have this work you will need:
1) a login page
2) a registration page
3) a change password page
4) a "forgot my password" mechanism
5) a system of preventing users from accessing pages unless they are logged in
6) a redirection system

Why re-invent the wheel? Use the standard Membership system, which will provide all the difficult bits for you: Introduction to Membership[^] If you must use an XML database (and I seriously wouldn't recommend that) then it is not a lot of work to implement a custom Membership provider that works seamlessly with the Membership system.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900