password vs. text

M

Matthew C

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
 
G

George Ter-Saakov

My understanding it's how browsers work.
They do not allow to set value for <input type="password">


George.
 
V

Vidar Petursson

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
==============================
 
V

Vidar Petursson

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
==============================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top