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 |