Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to replace the content of asp textbox of password mode with * symbol.Is it possible to do that?

Thanks in advance.
Posted

Set the TextMode to TextBoxMode.Password for the textbox.
 
Share this answer
 
v2
Comments
m@dhu 29-Mar-11 2:25am    
Nice and Simple.
deepak thomas 29-Mar-11 2:28am    
My question is when i set text mode to password the symbol that is displayed in text box is rounded balls instead i need to have * symbol there.Is it possible?
deepak thomas 29-Mar-11 2:37am    
how to set a textbox with text mode as password with different symbol like "*****"?
<asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></asp:TextBox>
 
Share this answer
 
Comments
deepak thomas 29-Mar-11 2:28am    
My question is when i set text mode to password the symbol that is displayed in text box is rounded balls instead i need to have * symbol there.Is it possible?
m@dhu 29-Mar-11 2:33am    
You should be bit more clear in your question :doh:
deepak thomas 29-Mar-11 2:37am    
how to set a textbox with text mode as password with different symbol like "*****"?
m@dhu 29-Mar-11 2:39am    
Yeah missed it completely.
deepak thomas 29-Mar-11 2:42am    
have you understood my requirement?
Use
this.txtpass.Attributes.Add("value", "password");<br />
 
Share this answer
 
Comments
deepak thomas 29-Mar-11 2:29am    
My question is when i set text mode to password the symbol that is displayed in text box is rounded balls instead i need to have * symbol there.Is it possible?
deepak thomas 29-Mar-11 2:37am    
how to set a textbox with text mode as password with different symbol like "*****"?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900