コード例 #1
0
        protected void Unnamed1_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                // if there is an existing account,
                // access the account and pass it to Session["account"]
                if (aList.DoesExist(TbEmail.Text))
                {
                    acct = aList.GetAccount(TbEmail.Text);

                    //if success
                    if (IsAuthenticationValid(acct))
                    {
                        Session["account"] = acct;
                        Response.Redirect("MemberPage.aspx");
                    }
                }
            }
        }