pzozulka
asked on
Password TextBox control in .NET
What is the proper way to create a password textbox control that is masked with bullet points.
Currently, I created a textbox control, and set itsHtmlTextWriterAttribute .Type property to "password".
writer.AddAttribute(HtmlTe xtWriterAt tribute.Ty pe, "password", true);
writer.AddAttribute(HtmlTe xtWriterAt tribute.Va lue, text, true);
Everything looks great, except that when you right click on the page and "view source" it actually shows the password in plain text.
REQUIREMENT:
For example, the current password in the textbox is "Apple" and is masked.
If the user goes in and deletes the last letter and replaces it with "a", the new password needs to be "Appla". So in other words, the characters need to be real.
How do I achieve this without the password showing up in "view source"?
Currently, I created a textbox control, and set itsHtmlTextWriterAttribute
writer.AddAttribute(HtmlTe
writer.AddAttribute(HtmlTe
Everything looks great, except that when you right click on the page and "view source" it actually shows the password in plain text.
REQUIREMENT:
For example, the current password in the textbox is "Apple" and is masked.
If the user goes in and deletes the last letter and replaces it with "a", the new password needs to be "Appla". So in other words, the characters need to be real.
How do I achieve this without the password showing up in "view source"?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.