예제 #1
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            string   userName = txtUserName.Text;
            string   password = txtPassword.Text;
            LoginDAO data     = new LoginDAO();
            Account  ac       = data.GetAccounts(userName, password);

            if (ac != null)
            {
                Session["account"] = ac;
                Response.Redirect("Home.aspx");
            }
        }