Example #1
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            var proxy = new BusinessProxy();

            string strUserName = txtUserName.Text.Trim();
            string strPassword = txtPassword.Text.Trim();

            if (proxy.CheckAdminLogin(strUserName, strPassword))
            {
                HttpContext.Current.Session["AdminUserName"] = strUserName;

                Response.Redirect("default.aspx");
            }
            else
            {
                lblError.Text = "Invalid Username/Password";
            }
        }