/// <summary> /// 保存按钮点击事件执行方法 /// </summary> protected void PageSave() { //ajax返回信息 string returnmes = ""; //原始密码 string pwd = Utils.GetFormValue(txtPwd.UniqueID); //新密码 string newPwd = Utils.GetFormValue(txtNewPwd.UniqueID); //确认密码 string surePwd = Utils.GetFormValue(txtSurePwd.UniqueID); //修改操作之后的结果 bool result = false; //实例化业务层 BIndividual bllBIndividual = new BIndividual(); result = bllBIndividual.PwdModify(SiteUserInfo.UserId, pwd, newPwd); if (result) { returnmes = EyouSoft.Common.UtilsCommons.AjaxReturnJson("true", "修改成功"); } else { returnmes = EyouSoft.Common.UtilsCommons.AjaxReturnJson("false", "修改失败,查看原始密码是否正确"); } Response.Clear(); Response.Write(returnmes); Response.End(); }