how to show password in login control when i click a checkbox
Login control password
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vithal WadjeRank #19 · 47.2K reputationPosted Feb 24, 2014, 8:02 AM EST
AmanRank #607 · 3.9K reputationPosted Feb 24, 2014, 9:59 AM EST
One of it is that you have to add two textBox for your password field.
Keeping one of your password field visibility to false initially in your form activates only one textbox to the user where they can enter their Password.
Now save the password in a string variable in the TextBoxChange event.
Now you in CheckBox Change event store the password variable in your another textbox whose visibilty was kept hidden initially, after that hide the first textbox in which user has inputted their password and show the another textbox whose visibility was kept hidden initially.
Thats it you get the password visible.
Looking Confused here is the source code for this.
Its very simple you can download it.
I am giving the Source Code for Windows Form Application.
You can however implement it in your Web application(ASP.net) easily.