We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

question

i have a login form with userid,password and checkbox to remember my id and password.i am storing id,password in cookies.my password textbox textmode is set to password.i am not able to display the password when the checkbox is checked where i can display the userid.if i change the textmode of password to single-line then i can. how can i display password automatically when checkbox is checked. please send me the code.

1 Reply

BC baljeet chawla July 13, 2006 07:49 AM UTC

first strore the password in viewstate ViewState["pass"] = Password; nd then add the textbox attribute programmatically TxtPass.Attributes.Add("value", ViewState["pass"].ToString()); hope it will solve ur problem

Loader.
Live Chat Icon For mobile
Up arrow icon