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

  • Thread starter Thread starter feng
  • Start date Start date
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
 
Use the "TextMode" property:
<asp:TextBox id="TextBox1" TextMode="Password" ...

Hope this helps,
Martha
 
Back
Top