How to turn a asp web form TextBox into a password field?

F

feng

I would like to use asp web form's TextBox control for my
password field but I don't know how to do this. I know I
can use HTML textbox and then set the type="password". In
asp TextBox, however, there is no type attribute. Can
someone help me on this?

Thanks
 
M

Martha[MSFT]

Use the "TextMode" property:
<asp:TextBox id="TextBox1" TextMode="Password" ...

Hope this helps,
Martha
 

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,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top