Login Control -- Password, ASP.net 2.0
Posted on 2011-03-22
Using login control in my login.aspx page . when ever user checks "Remember me" userId is stored in cokkie.
At Next login, userID is filled automatically.
This works fine....
Now i'm trying to do the same ..for teh password .... by storing password in cookie and at next login ...fill the password ...
BUt, i am getting this error when i'm trying to fill the Login.Password filed using ...
Login2.Password = Server.HtmlEncode(Request.Cookies["pwd"].Value);
Error:- Property or indexer 'System.Web.UI.WebControls.Login.Password' cannot be assigned to -- it is read only
can i accomplish what i need?