Beispiel #1
0
        public void signUp(AdminRegister a)
        {
            Connection gcon = new Connection();

            // gcon.getConnection();
            gcon.ExecuteQuery("insert into AdminReg values ('" + a.Name + "','" + a.Email + "','" + a.Password + "','" + a.role + "')");
            gcon.ExecuteQuery("insert into login values('" + a.Email + "','" + a.Password + "','" + a.role + "')");
        }
 protected void Button6_Click(object sender, EventArgs e)
 {
     Models.AdminRegister ad = new Models.AdminRegister();
     ad.Name     = TextBox11.Text;
     ad.Email    = TextBox12.Text;
     ad.Password = TextBox13.Text;
     ad.signUp(ad);
     Response.Write("<script>alert('Successfully Regsitered')</script>");
     ct.ClearTextbox(TextBox11, TextBox12, TextBox13);
 }