Holding enter in a password textbox

  • Thread starter Thread starter Greg Smith
  • Start date Start date
G

Greg Smith

How do you hold the data in a password TextBox on a PostBack?

My users don't like it if enter data into the password and password confirm
Textbox and another control's PostBack clears it out.


Any help is greatly appreciated.
 
I believe that this is by design and is a behavior of the password textbox.
This is not a good idea to do since the password is suddendly available in
plain text as it's in the HTML of the page. You can use the
myTextBox.Attributes.Add("value",passwordValue) to add the password value to
the textbox, but this is probably not a good idea. Your users should be used
to this as almost every web site I know of that has some sort of signup will
have exactly this behavior. Keep in mind, users are generally the reason we
have poor security since they want ease of use at the expense of security.
 
Back
Top