コード例 #1
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            string username = txtusername.Value;
            string password = txtpassword.Value;

            if (allUsers.checkLogin(username, password))
            {
                Session["username"] = username;
                Response.Redirect("AccountPage.aspx");
            }
            else
            {
                lblLogInError.Visible = true;
            }
        }