Header Ads

Keep the PASSWORD field values during postback

if there is any post back activity after the password field entry in a asp.net form, It will clear the password text. It's not a good feature to the user to re-enter. To avoid that, write a single line of code in page_load event.

 
txtPassword.Attributes["value"] = txtPassword.Text;

No comments:

Powered by Blogger.