ASP.NET防止网页刷新,密码消失 protected void Page_Load(object sender, EventArgs e) { //防止网页刷新,密码消失 this.TextB_mima.Attributes["value"] = TextB_mima.Text;