How to get a password type textbox in Asp.net ?

 Posted by Vivek.Ramapuram on 6/9/2015 | Category: ASP.NET Interview questions | Views: 347 | Points: 40
Answer:

If we need to get a password text box so that the actual text doesn’t appear as user type in the text box, This is frequently used to enter password or secret code on the web page so that other can’t know what is being written in the textbox.
For example :
<p>Password: <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" /></p>


Use the above code to get the password type textbox.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response