Cannot persist the password textbox

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

how can I persist the data input in the textbox which the Textmode =
Password after postback?? I found that when I set the Textmode in textbox to
PASSWORD, i cannot persist the data within the textbox after postback...is
there any way to fulfil my req??
 
Hi Grey:

Passwords are secrets, so it's a good idea to treat them as such. Any
work around you might come up would make the application less secure.
 
One more thought. If you are simply trying to allow the user to get back on
without logging in, and you are using Forms Auth, you can set the cookie to
persist. I would also be careful with this.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
This is done by design as a security measure. To put the value back
into the textbox you have to add the value as an attribute

txtPassword.Attributes.Add("value" , <password string>)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top