protected void lbtnSave_Click(object sender, EventArgs e) { BLL.Security.UserBll userBll = new BLL.Security.UserBll(); DataTable dtUserList = userBll.GetUserInfo(txtUserName.Text.Trim()); if (dtUserList.Rows[0]["UserPassword"].ToString().Trim() == this.txtOldPwd.Text.Trim()) { userBll.UpdateUserPWD(this.txtUserName.Text.Trim(), this.txtAckPwd.Text.Trim()); //WMS.App_Code.JScript.ShowMessage(this, "密码修改成功!"); ClientScript.RegisterClientScriptBlock(ClientScript.GetType(), "myscript", "<script type='text/javascript'>alert('密码修改成功!');</script>"); } else { JScript.ShowMessage(this, "原密码错误!"); } }
protected void lbtnSave_Click(object sender, EventArgs e) { //DatabaseOperater dbOperator = new DatabaseOperater(); //dbOperator.GetModelName = "sys_UserListlogin"; //dbOperator.GetStrProcParaValue = txtUserName.Text + "," + encrypObject.EncryptMD5(); ; BLL.Security.UserBll userBll = new BLL.Security.UserBll(); DataTable dtUserList = userBll.GetUserInfo(txtUserName.Text.Trim()); if (dtUserList.Rows[0]["UserPassword"].ToString().Trim() == this.txtOldPwd.Text.Trim()) { userBll.UpdateUserPWD(this.txtUserName.Text.Trim(), this.txtAckPwd.Text.Trim()); //WMS.App_Code.JScript.ShowMessage(this, "密码修改成功!"); ClientScript.RegisterClientScriptBlock(ClientScript.GetType(), "myscript", "<script type='text/javascript'>alert('密码修改成功!'); Exit();</script>"); } else { JScript.ShowMessage(this, "原密码错误!"); } }
protected void lbtnSave_Click(object sender, EventArgs e) { //DatabaseOperater dbOperator = new DatabaseOperater(); //dbOperator.GetModelName = "sys_UserListlogin"; //dbOperator.GetStrProcParaValue = txtUserName.Text + "," + encrypObject.EncryptMD5(); ; BLL.Security.UserBll userBll = new BLL.Security.UserBll(); DataTable dtUserList = userBll.GetUserInfo(txtUserName.Text.Trim()); if (dtUserList.Rows[0]["UserPassword"].ToString().Trim() == this.txtOldPwd.Text.Trim()) { userBll.UpdateUserPWD(this.txtUserName.Text.Trim(), this.txtAckPwd.Text.Trim()); //WMS.App_Code.JScript.Instance.ShowMessage(this, "密码修改成功!"); ClientScript.RegisterClientScriptBlock(ClientScript.GetType(), "myscript", "<script type='text/javascript'>alert('密码修改成功!'); Exit();</script>"); } else { JScript.Instance.ShowMessage(this, "原密码错误!"); } }