password textbox input

T

tempo

Hello all,

I am sure this has been asked before. If anyone can answer or point me to a URL, I would be grateful.

I have a textbox with TextMode="Password", and I am trying to assign a string to Text field of the textbox, but nothing is shown, that is, no ***** characters corresponding to the input string. Is there a way to activate this feature?

Thanks.




**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
E

Ed Kaim [MSFT]

In Windows Forms, try setting PasswordChar to '*'.

I don't know how to do this with ASP.NET. It seems that the engine ignores
the Text property if TextMode is set to Password. This is probably because
it would require embedding the password in plaintext in the HTML source.
Although it's ugly, perhaps you could manually write out the HTML for the
password box if you really need to do this.

qborba said:
Hello all,

I am sure this has been asked before. If anyone can answer or point me to a URL, I would be grateful.

I have a textbox with TextMode="Password", and I am trying to assign a
string to Text field of the textbox, but nothing is shown, that is, no *****
characters corresponding to the input string. Is there a way to activate
this feature?
Thanks.




**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 

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

Top