How to use Label as a TextBox
-
I want to use Label as TextBox and when any one enter their password in Label it should display some other character Like('*'). how to do. Plz help me out. Thanks in advance.
-
I want to use Label as TextBox and when any one enter their password in Label it should display some other character Like('*'). how to do. Plz help me out. Thanks in advance.
The Label control is basically used to display text, and it's not an input control like TextBox, DropDownlist. So I'm curious when you want to make the Label work as a TextBox, in your case you should use the TextBox control and make it look like a Label. To do so, you can set the BorderColor of the textbox to
white
, and also set theBorderWidth
to0
. You can wrap these settings up in a css class. -
I want to use Label as TextBox and when any one enter their password in Label it should display some other character Like('*'). how to do. Plz help me out. Thanks in advance.