The ViewState is just an encrypted version of what was last sent down, so
that next time there is a post to the server, it can all be sent back up as
one thing. It can then be used on the server, to see if a field's value
changed, etc.
The browser does not care about ViewState, and does not use it to populate
its controls.
There is no way to override the behavior. The only way you can do this, is
to do it in javascript, but that would most likely mean sending the password
down in clear text, where anyone who knows how to do View -> Source can look
at it.
"Nathan Sokalski" <njsok...@hotmail.com> wrote in message
news:%23mvV7GD...@TK2MSFTNGP09.phx.gbl...
There is a workaround if you're determined. You can set the password text
via client side script.
Here's the simplest example I've seen:
MyPWTextBox.Attributes.Add("value", strPassword)
This server side code outputs the needed client side code to fill in the
password. For reasons mentioned earlier, it's preferable to avoid
transmitting the password around like this when possible.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Nathan Sokalski" <njsok...@hotmail.com> wrote in message
news:%23mvV7GD...@TK2MSFTNGP09.phx.gbl...