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

I want to show user password in asp.net textbox at run time from database. but textbox
is not showing password. so is there any solution for this.
please give me any solution.
Posted
Comments
Vani Kulkarni 4-Jul-12 2:28am    
What is the textbox showing? Infact it is a bad practise to display password on webpage, better go for using email functionality for showing password, so that only intended user can receive & see the password.
coolnavjot31 4-Jul-12 2:31am    
hello Vani,

my requirement is that in change profile page i want to show user password in textbox at runtime when textmode is set to Password.
Sandeep Mewara 4-Jul-12 2:47am    
Password is never shown back to user even in '*' format!

Passwords are always asked to be entered, never persisted.

If you do, it's a bad design and I for one will never visit such website!
Shemeer NS 4-Jul-12 3:06am    
yes sandeep, I agree with you...

C#
string sPwdMask = "************";
txtTCSPassword.Attributes["value"] = sPwdMask.PadRight(15, '®');
 
Share this answer
 

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