password textbox input

  • Thread starter Thread starter tempo
  • Start date Start date
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...
 
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...
 
Back
Top