Groups | Blog | Home
all groups > asp.net > july 2003 >

asp.net : Password TextBox VeiwState Text


Leon Shaw
7/29/2003 10:37:04 PM
Why Password Textbox do not Save VeiwState doing Refreshing of page and how
do I accomplish this?

Craig Deelsnyder
7/29/2003 11:02:41 PM
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....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


[quoted text, click to view]

Leon Shaw
7/29/2003 11:37:57 PM
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.
[quoted text, click to view]

AddThis Social Bookmark Button