Holding enter in a password textbox

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.
 
M

Mark Fitzpatrick

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.
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top