Reputation: 450
Hi I am using a text box with Password mode. And inserting the value using encryption. After that while updating the information I have to display the text again using password mode. But While assigning the data It is not displaying it in the textbox. How can I overcome this?
Upvotes: 3
Views: 8141
Reputation: 52241
Pretty simple...
txtbox1.Attributes.Add("value", "yourValue");
TextBox_admin_password.Attributes.Add("value", showInfo.password);
the first parameter of Add()
method is Key value and can be any value as desired by user and the second parameter is password that user retrieves from database or any source.
Upvotes: 5
Reputation: 8876
Try the following link :
http://www.codeproject.com/KB/custom-controls/ASPNET_Password_TextBox.aspx
Upvotes: 1