protected void submitToServer(object sender, EventArgs e) { if (Request.Form["ConfirmPassWord"].ToString() == Request.Form["PassWord"].ToString()) { _UserInfoDictionary = null; _UserInfoDictionary = new Dictionary <string, string>(); _UserInfoDictionary.Add("UserAccount", _UserAccount); _UserInfoDictionary.Add("UserName", Name.Value); _UserInfoDictionary.Add("UserPassWord", Request.Form["ConfirmPassWord"].ToString()); _UserInfoDictionary.Add("UserBirth", Request.Form["birthday"].ToString()); _UserInfoDictionary.Add("UserSex", Request.Form["sexual"].ToString()); DataBaseTools.SubmitData(_UserInfoDictionary); Response.Write("<script>alert('修改成功')</script>"); } else { Response.Write("<script>alert('两次输入密码不一致')</script>"); } }