For security reasons, a password is not normally retained with a postback
because anyone will be able to see the password from the HTML source. Your
best option is to create a ViewState variable of your own and assign the
password to it on postback in most likely the Page_Load method. Then, in
the Page_PreRender method, reassign the password back to that particular
textbox.
Your truly best option is to collect all of the information first before you
have to postback. That way, you can process the password and forget about
it.
Hope this helps!
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
"et" <ea*************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
In a procedure where a user creates a password, among other things, the
password textbox returns to blank whenever a user selects other fields
that cause a postback, even though they are not done saving the record..
How can I retain what the user has entered in the password field even on
postback? And why does it only happen to the password field; all other
fields are retained.