Click here to Skip to main content
15,918,049 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
help i don't know how to creat a password field .

i have two textboxes one for username and one for password.. and in password textbox i want to show the password in hashess. i see all textbox properties but can't fine any passwrd field property their. pls help me..
Posted

use the attribute
TextMode="Password"


ex :
<asp:textbox id="myTextBox" runat="server" textmode="Password" xmlns:asp="#unknown"></asp:textbox>
 
Share this answer
 
According to that http://www.w3schools.com/aspnet/aspnet_textbox.asp[^], it seems that for ASP.NET control, this is the TextMode property.

I think that if you use HTML controls, that an input(password) is available in the toolbox.
 
Share this answer
 
Select your textbox and go propertise window find out the TextMode property and select Password from list. by default TextMode show SingleLine. or you can easily set password textbox from HTML Mode go HTML source and add this tag in your texbox HTML property
TextMode="Password"
for example

<asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></asp:TextBox>



Thanks
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900