Link to home
Start Free TrialLog in
Avatar of ilfocorp
ilfocorp

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of meetingexpectations
meetingexpectations

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<asp:TextBox id=TextBox1 runat="server" TextMode="Password" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
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