Text field using password mode

Hi, I am using a password text field. And pasting values ​​using encryption. After that, updating the information, I must again display the text using the password mode. But When assigning data, it does not appear in the text box. How can I overcome this?
+3
source share
2 answers

pretty simple ...

txtbox1.Attributes.Add("value", "yourValue");


TextBox_admin_password.Attributes.Add("value",showInfo.password); 

the first parameter of the Add () method is the key value and can be any value at the request of the user, and the second parameter is the password that the user retrieves from the database or any source

+5
source

Source: https://habr.com/ru/post/1722672/


All Articles