Esempio n. 1
0
    protected void btn_register_Click(object sender, EventArgs e)
    {
        bool isRegistered = rg.AddUser(txt_firstName.Text, txt_Email.Text, txt_pass.Text);

        if (isRegistered)
        {
            Session.Add("userid", rg.GetID());
            Response.Redirect("~/Home.aspx");
        }
        else
        {
            lbl_message.Text = "User Seems to be Registered";
        }
    }