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

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
 
M

Mark Rae [MVP]

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

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

Top