Text control - password

A

abcd

I am gettting strange behavior for text control of type password....

I have a password text corol followed by a dropdownlist (whose AutoPostback
is true)

when I type my password then go to next cotrol whch fires autoPostback then
my passord contol is cleared...my entered password is cleared...what could
be the reason
 
S

Steve C. Orr [MVP, MCSD]

This is the default behavior. It minimizes passwords being transmitted
around the internet any more than they have to be. It's a security
precaution.
 
A

abcd

Basically I would like to show ***** for the password. If I dont display
those stars then the user of my page wil not get an idea if there is already
a pasword set or not....

thanks
 
S

Steve C. Orr [MVP, MCSD]

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 good to avoid transmitting
the password around like this when possible.
 

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,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top