In this article, I will explain how to keep password & Retype password textbox value during postback in asp.net
protected void Page_Load(object sender, EventArgs e) { if (!(String.IsNullOrEmpty(txtPassword.Text.Trim()))) { txtPassword.Attributes["value"] = txtPassword.Text; } if (!(String.IsNullOrEmpty(txtRePassword.Text.Trim()))) { txtRePassword.Attributes["value"] = txtRePassword.Text; } }
Hope freshers will find it helpful :)
No comments:
Post a Comment