protected void btnLogin_Click(object sender, EventArgs e) { try { Login_NTx_Dac oView = new Login_NTx_Dac(); string strTxtLoginId = string.Empty; string strTxtLoginPw = string.Empty; if (Request.Form["TxtLoginId"] != null) { strTxtLoginId = Request.Form["TxtLoginId"].ToString(); } if (Request.Form["TxtLoginPw"] != null) { strTxtLoginPw = Request.Form["TxtLoginPw"].ToString(); } LoginBean Bean = oView.TOTALBBS_ADMIN_SEL(strTxtLoginId, strTxtLoginPw); if (!string.IsNullOrEmpty(Bean.strAdminId) && Bean.chrCheckLogin.Equals("0")) { CookieInfo AdminInfo = new CookieInfo(); CookieInfo.setAdminCookieSetting(Bean, ".totalbbs.com"); StringBuilder sbLoginOk = new StringBuilder(); sbLoginOk.Append("alert('" + LoginBeen + "');"); sbLoginOk.Append("location.href=\"/BackOffice/Board/BoardList.aspx\""); this.LoginOK_Process(sbLoginOk); } } catch (Exception ex) { StringBuilder sbLoginError = new StringBuilder(); sbLoginError.Append("alert('" + LoginFailed + "');"); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "LoginError", sbLoginError.ToString(), true); return; } }