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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.codeproject.com/KB/custom-controls/ASPNET_Password_TextBox.aspx
<asp:TextBox id=TextBox1 runat="server" TextMode="Password" AutoPostBack="True" OnTextChanged="TextBox1_Te xtChanged" ></asp:Tex tBox>
Hello, ic,
What type is your current TextBox? (System.Windows.Forms.Text Box has a PasswordChar property that you can set to be an asterisk.)
Cheers,
Randy
What type is your current TextBox? (System.Windows.Forms.Text
Cheers,
Randy