Password TextBox VeiwState Text

  • Thread starter Thread starter Leon Shaw
  • Start date Start date
L

Leon Shaw

Why Password Textbox do not Save VeiwState doing Refreshing of page and how
do I accomplish this?
 
You can't set the password field's value when sending a response to the
browser. This is due to security restrictions, it's read-only, and loses
its value when the page is sent back to the client (hence ASP.NET cannot
save it via viewstate). But most users use a password manager of their own,
which is a client feature out of your control, that is the only (safe) way
to do it. Another way would be to use Javascript, I believe someone said
you can do that, but of course you'd pry want to be using SSL then, as the
password would be in clear text. Plus that's not really the problem,
usually it's to compare the value to the user's actual password, so you
don't want it in the page then at all for them to 'view source' on....
 
I have a dropdownlist in my form (which is all cities after selecting a
state) that needs refreshing before submission. How do you use the password
manager client feature.
 
Back
Top