Script please to show password asterisks in aspnet

Asked By 30 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by jasonf kknisely
Best Answer
Best Answer
Answered By 0 points N/A #131027

Script please to show password asterisks in aspnet

qa-featured

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

Answered By 0 points N/A #197852

Script please to show password asterisks in aspnet

qa-featured

 

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.

Related Questions