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

asp.net : password vs. text



George Ter-Saakov
6/27/2003 3:37:59 PM
My understanding it's how browsers work.
They do not allow to set value for <input type="password">


George.

[quoted text, click to view]

Matthew C
6/27/2003 7:34:15 PM
Hello,

I have a single line input box and when it is set to "password" the value in
it dissapears during form submits, but persists when simply set to "text".

How do I set and or persist the PASSWORD field?

thanks for listening.

M


Vidar Petursson
6/27/2003 7:52:01 PM
Hi

This is one way
<input name="sPassword" ID="sPassword" type="password"
value="<%=strPassword%>">

You could also send a script(JavaScript) to the client to set the password

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
[quoted text, click to view]

Vidar Petursson
6/27/2003 7:57:55 PM
Hi

No password element is NOT read only
example
<input type="password" onfocus="this.value='yadda'">

but input type="file" is read only

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
[quoted text, click to view]

AddThis Social Bookmark Button