password type textboxes - I don't want them cleared during validation

  • Thread starter Thread starter Keith G Hicks
  • Start date Start date
K

Keith G Hicks

asp.net 2.0

I have several text boxes and set one of them as a password type and put a
validator on it and some other text boxes. When I enter data into the boxes
violating the validators intentionally. Then I click my submit button. The
validators show what's missing or incorrect but my password text boxes
clear out. How can I prevent this?

Thanks,

Keith
 
I have several text boxes and set one of them as a password type and put a
validator on it and some other text boxes. When I enter data into the
boxes
violating the validators intentionally. Then I click my submit button. The
validators show what's missing or incorrect but my password text boxes
clear out. How can I prevent this?

This is standard behaviour:
http://www.google.co.uk/search?sour...52GB252&q=asp:TextBox+password+postback+blank

There are a couple of hacks round it, but I really don't advise them...
 
Back
Top