Exemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            BLLUserClass ob = new BLLUserClass();

            if (!ob.userexists(TextBox1.Text))
            {
                L.Text = "User does not exist";
            }
            else
            {
                string pass = ob.getpass(TextBox1.Text);
                if (pass == TextBox2.Text)
                {
                    L.Text = "Logging in";
                    Session["username"] = TextBox1.Text;
                    Response.Redirect("~/Homepage.aspx");
                }
            }
        }
Exemplo n.º 2
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            BLLUserClass b = new BLLUserClass();

            b.Insert(TextBox3.Text, TextBox4.Text, TextBox5.Text, TextBox6.Text);
        }