Example #1
0
        private void CheckChangePassword()
        {
            AccountBiz Accbiz      = new AccountBiz();
            var        userProfile = (DTO.UserProfile)Session[PageList.UserProfile];
            var        res         = Accbiz.IsChangePassword(userProfile);

            if (!res.IsError)
            {
                // จะต้องเปลี่ยนรหัสผ่าน
                if (res.ResultMessage)
                {
                    ClearControlPwd();
                    PopUpEditPassword.Show();
                }
                else
                {
                    Response.Redirect(gotoPage);
                }
            }
            else
            {
                AlertMessage.ShowAlertMessage(string.Empty, res.ErrorMsg);
            }
        }
Example #2
0
 protected void btnCloseError_Click(object sender, EventArgs e)
 {
     PopUpEditPassword.Show();
 }