Example #1
0
        protected void btnOk_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtUserName.Text) && !string.IsNullOrEmpty(txtConfirmEmail.Text))
            {
                BLL.PersonBiz biz = new BLL.PersonBiz();

                var res = biz.ForgetPasswordRequest(txtUserName.Text, txtConfirmEmail.Text);
                if (res.IsError)
                {
                    UCModalPopupError.ShowMessageError = res.ErrorMsg;

                    UCModalPopupError.ShowModalError();
                    UpdatePanelForgetPassword.Update();
                    return;
                }
                else
                {
                    txtConfirmEmail.Text = "";
                    txtUserName.Text     = "";
                    UCModalPopupSuccess.ShowMessageSuccess = SysMessage.ConfirmChangePasswordMail;
                    UCModalPopupSuccess.ShowModalSuccess();
                    UpdatePanelForgetPassword.Update();
                    return;
                }
            }
            else
            {
                UCModalPopupError.ShowMessageError = SysMessage.PleaseInputFill;
                UCModalPopupError.ShowModalError();
                UpdatePanelForgetPassword.Update();
            }
        }