防止刷新时,密码输入框中的信息丢失

private void Page_Load(object sender, System.EventArgs e)
  {
   this.txtPwd.Attributes.Add("value",   txtPwd.Text.Trim());
   this.txtRePwd.Attributes.Add("value",   txtPwd.Text.Trim());
  }

原文地址:https://www.cnblogs.com/RobotTech/p/619729.html