Asked By
Edwaard Lee
30 points
N/A
Posted on - 11/19/2012
Please give me a script where I could show password asterisks in aspnet. The real password still appears on the script I have done. Please share me your script. It is for a project I am learning.
Script please to show password asterisks in aspnet
Hi,
You don’t need any script to show password as asterisk in asp.net. Kindly right click on the textbox and go to properties. In the properties you will be having three options single line, multi line and third option is for asterisk. Just select this option and view the page in browser. I hope this simple solution will solve the issue.
Â
Regards
Script please to show password asterisks in aspnet
Â
Hi Edwaard,
Â
To display the password asterisks in the textbox, you need to use
Â
txtPassword.Attributes.Add("value",Password);
Â
instead of txtPassword.Text = Password;
Â
But if someone views your source code or use any Packet snooper, then they could see your password.
Try Using SSL to access the page. Its a workaround for the above problem.