Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I am new in ASP.NET. I am making a school website where students can log in and out with their ID and password. Student IDs and passwords are saved in a SQL database that is on the same server on which website is hosted. I want to log in/out like on www.codeporject.com, where you log in with our email and password and then remain signed in until you click on 'Sign out'.

Thank you.
Posted
Updated 14-May-10 22:52pm
v2

If you want to support role management in your website, Microsoft have provided some handy features that you might want to look at. One thing you need to look at is the Role Provider. Have a read of this[^] to see how to use the role provider, and how to link it to the login controls.
 
Share this answer
 
Comments
Jitendra Zaa 13-May-10 2:57am    
Thanks Pete for such good Information. I am also newbie in .NET
Pete O'Hanlon 13-May-10 3:26am    
Jitendra - I'm glad that I could help. Don't worry about being a .NET newbie; we all started off that way and it's good to see you're willing to learn. Top notch.
Hello,
For this query you have to use login control
Hers an example for that, please help your self
Login control examples
Thanks & Regards
Radix :)
 
Share this answer
 
Comments
Ankur\m/ 15-May-10 3:00am    
Did not Pete mean the same thing? What's the use putting same answers again?

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