Johny Bravo
asked on
Login user using xml as database(C#)
Hi Experts,
I am usign an XML file as database.I am storing Username and password in xml file(I know its a bad idea but I am not having any database option on my web server.).I am storing the user details in xml file at the time of registration,now I want to authenticate user against this xml file.
I am giving Sample xml here.I am getting my hands on xml, so I really appreciate your help how to login user using credential in xml file.
I am usign an XML file as database.I am storing Username and password in xml file(I know its a bad idea but I am not having any database option on my web server.).I am storing the user details in xml file at the time of registration,now I want to authenticate user against this xml file.
I am giving Sample xml here.I am getting my hands on xml, so I really appreciate your help how to login user using credential in xml file.
<customerList>
- <customer>
<name>Johny</name>
<address>Canada</address>
<emailID>johny_bravo1@gmail.com</emailID>
<company>IT</company>
<country>Canada</country>
<contact />
<comment />
<registeredForNews>False</registeredForNews>
<product>False</product>
<Username>johny_bravo1@gmail.com</Username>
<Pwd>johy567</Pwd>
</customer>
- <customer>
<name>Marshal</name>
<address>Canada</address>
<emailID>marshal_tweetu@gmail.com</emailID>
<company>XYZ</company>
<country>Canada</country>
<contact />
<comment />
<registeredForNews>False</registeredForNews>
<product>GWD Project</product>
<Username>marshal_tweetu@gmail.com</Username>
<Pwd>marsh544j</Pwd>
</customer>
- <customer>
<name>sagar</name>
<address>Mumbai</address>
<emailID>sagar@gmail.com</emailID>
<company>Bitwise</company>
<country>India</country>
<contact />
<comment />
<registeredForNews>False</registeredForNews>
<product>HR mgnt</product>
<Username>sagar@gmail.in</Username>
<Pwd>skosag</Pwd>
</customer>
- <pages>
<aboutUs>0</aboutUs>
<captiveServices>0</captiveServices>
<careers>0</careers>
<contact>0</contact>
<downloads>0</downloads>
<enquiry>0</enquiry>
<gwd>1</gwd>
<indiaSolution>0</indiaSolution>
<news>0</news>
<productEngineering>0</productEngineering>
<products>0</products>
<supportServices>0</supportServices>
<testimonials>0</testimonials>
</pages>
</customerList>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Check the simple example
http://www.aspxcode.net/free-asp-net-login-source-code.aspx?Topics=User%20Login%20With%20XML
Hope this will help you
http://www.aspxcode.net/free-asp-net-login-source-code.aspx?Topics=User%20Login%20With%20XML
Hope this will help you
ASKER