newbie question on TextBox

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
 
R

Richard Morse

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
 
R

Raymond Lewallen

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
 

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

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top