Trying To Create A Password textbox

using VB.NET 2005, I have a textbox that users enter a their password into.  I want the password to show astericks instead of the password.  I cannot find the MaskedTextBox control in my tools, etc. nor can I find in the properties section a property that says "PasswordChar" for any of my text boxes

I couldn’t find where to try setting textbox property TextMode="Password"
I added Imports System.Web.UI.WebControls and I am still unable to either convert my current textbox into a password format with asteriks or add password textbox.  Can someone help me with what I’m missing?  Thank you.

ic
ilfocorpAsked:
Who is Participating?
 
meetingexpectationsConnect With a Mentor Commented:
This is what I have and it works fine...
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" ></asp:TextBox>
0
 
Kumaraswamy RCommented:
<asp:TextBox id=TextBox1 runat="server" TextMode="Password" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
0
 
omegaomegaDeveloperCommented:
Hello, ic,

What type is your current TextBox?  (System.Windows.Forms.TextBox has a PasswordChar property that you can set to be an asterisk.)

Cheers,
Randy
0
All Courses

From novice to tech pro — start learning today.