In my form(.aspx page) i have 2 text fields for password and re-confirm password.
When i click a button it clears the password value .
Is there anyway to get the value back to the password field.
- make sure viewstate is enabled on the textbox (although, since I havn't used one with passwords yet, I'm not sure if clearing the textbox is the default behaviour)
- store the value in a session variable and fill it in when the pages posts back
- store the value in viewstate and fill it in when the page posts back.
I don't think that works D. I have played around with passwords some and even if you set the text value to something in your code behind it dissapears by the time it reaches the browser. I checked and my viewstate was turned on, but whenever the page is refreshed, does a postback any value typed in the box is gone.
You may be able to do this with some client side javascript I am not sure. That'l do donkey, that'l do Mark
If you are unsure of forum etiquette check here faq796-2540
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.