newbie question on TextBox

  • Thread starter Thread starter Danny Ni
  • Start date Start date
D

Danny Ni

Hello,

I am trying to use a TextBox Web control in ASP Form page for password
entry, how do I make it to display * when user types in it.

Thanks in Advance
 
Danny Ni said:
Hello,

I am trying to use a TextBox Web control in ASP Form page for password
entry, how do I make it to display * when user types in it.

Looking at the docs for asp:TextBox, I see:

<asp:TextBox id="value" AutoPostBack="True|False" Columns="characters"
MaxLength="characters" Rows="rows" Text="text"
TextMode="SingleLine|MultiLine|Password" Wrap="True|False"
OnTextChanged="OnTextChangedMethod" runat="server" />

I would guess you need to look at the TextMode property.

HTH,
Ricky
 
Danny,
I am trying to use a TextBox Web control in ASP Form page for password
entry, how do I make it to display * when user types in it.

Try setting the textbox property MyTextBox.TextMode="Password"

HTH,

Raymond Lewallen
 
Back
Top