Wednesday, March 2, 2011

How to set the text for a TextBox with TextMode as Password asp.net

If we have to show the text value in text box where TextM ode property is set to password.

string password ="TestPassword";

TextBoxPassword.Attributes.Add("value", password);

Thanks
Mahesh K. Sharma


No comments: