posted 1/12/2009 by Vijendra Shakya
When you set the mode of the TextBox is Password and retrive the password from the DB then the TextBox will be blank for security purpose
If you want to display the password in the textbox in * format then we use following way to retrive the password in Textbox and the mode of the Textbox is Password.
txtPassword.Attributes.Add("value","vijendra");
where txtPassword is the name of the TextBox which is in Password mode and "vijendra" is the value to assign.
there is another way:
txtPassword.Attributes["value"] = "vijendra";
Hope it will help....
What kind of email newsletter would you prefer to receive from CodeAsp.Net?18