protected void btnLogin_OnClick(object sender, EventArgs e) { objUserInfoBiz = new UserInfoBiz(); objUserInfo = objUserInfoBiz.GetLoginInfo(txtLoginUserName.Text.Trim(), SHA512PasswordGenerator(txtLoginPassword.Text.Trim())); if (objUserInfo != null) { SessionUtility.RMSSessionContainer.OBJ_CLASS = objUserInfo; FormsAuthentication.RedirectFromLoginPage(objUserInfo.Username, false); Response.Redirect(Session["returnUrl"]?.ToString() ?? "~/Home.aspx"); } else { MessageBox("Unauthorized Login"); SessionUtility.RMSSessionContainer.OBJ_CLASS = null; ModalUserLogin.Show(); } }
protected void bntLogin_OnClick(object sender, EventArgs e) { ModalUserLogin.Show(); }