Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear,

Good morning,

I am Debapriya and I develop a web application in asp.net 2.0. In a login form I use 2 textboxes(User id,password), 2 buttons(login,reset) and 1 checkbox(remember me). How to use remember me checkbox in c# code?

Thank you,

Debapriya
Posted
Updated 17-Nov-10 18:06pm
v2

1 solution

Hi,

I won't give you code but some advice. You should store the checbox flag in some configuration file or database together with the user name/password. This means as soon as the checkbox is checked and the user logs in, you should store a boolean flag and id/password in a file/database. The next time the dialog would be shown, you check this stored flag and if it is "true", you don't show the dialog and instead just login the user with the stored user name and password.
Alternatively you could always show the login form and just fill the textboxes with the stored values if the flag is true.

Just try to break down your task in simple tasks. This way the problem is quite easy to solve.
 
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