Can anyone guide me to build registration and login system with XML, C# and ASP.NET.
A simple way is:
1)Create a Meomory-Based DataTable in the Page_Load event,and then define two columns called "Name" and "Password".
2)Save the DataTable into ViewState for futher use。
3)At the same time,please export the DataTable by using WriteXml to export to the xml file。
4)When doing validating,please use DataTable.Select("Name='Your Name' And Password='Your Password'") and check whether the result!=null and result.Count>0——if yes,this means we've found the result,otherwise we don't。
5)Everytime when you change the data contents from DataTable,Don't forget to use WriteXml to re-write;If you want to read it out,just use DataSet.ReadXml and DataSet.Tables[0] to subsitute the original one。
kim jone
Member
7 Points
19 Posts
building registration and login system with XML
Dec 18, 2011 03:21 PM|LINK
Can anyone guide me to build registration and login system with XML, C# and ASP.NET.
I want to learn it. Are there any links for it? I'll be very much glad if any one guides me for this tutorial.
hajiposter1
Member
350 Points
75 Posts
Re: building registration and login system with XML
Dec 18, 2011 07:07 PM|LINK
why are you using xml for registration .
database are there to use and save data in database.
kim jone
Member
7 Points
19 Posts
Re: building registration and login system with XML
Dec 19, 2011 06:29 AM|LINK
I want to learn it.
Can you guid me for this problem?
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: building registration and login system with XML
Dec 20, 2011 12:49 AM|LINK
A simple way is:
1)Create a Meomory-Based DataTable in the Page_Load event,and then define two columns called "Name" and "Password".
2)Save the DataTable into ViewState for futher use。
3)At the same time,please export the DataTable by using WriteXml to export to the xml file。
4)When doing validating,please use DataTable.Select("Name='Your Name' And Password='Your Password'") and check whether the result!=null and result.Count>0——if yes,this means we've found the result,otherwise we don't。
5)Everytime when you change the data contents from DataTable,Don't forget to use WriteXml to re-write;If you want to read it out,just use DataSet.ReadXml and DataSet.Tables[0] to subsitute the original one。
Best reguards!