//dbClass cls = new dbClass(); protected void Button1_Click(object sender, EventArgs e) { try { cls.insertdelupdate("insert into hall_details values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox10.Text + "','" + TextBox9.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" + DropDownList4.SelectedItem.ToString() + "','" + DropDownList1.SelectedItem.ToString() + "','" + TextBox11.Text + "','" + DropDownList3.SelectedItem.ToString() + "','" + DropDownList5.SelectedItem.ToString() + "','" + TextBox8.Text + "')"); Response.Write("Inserted successfully......."); } catch (Exception ex) { Response.Write(ex.Message); } }
// protected void Button1_Click(object sender, EventArgs e) // { // // } protected void Button1_Click(object sender, EventArgs e) { cls.insertdelupdate("insert into hall_type values('" + DropDownList1.SelectedItem.ToString() + "','" + DropDownList2.SelectedItem.ToString() + "','" + TextBox1.Text + "','" + TextBox3.Text + "','" + TextBox2.Text + "')"); Response.Write("Request Inserted....!"); }
protected void Button1_Click(object sender, EventArgs e) { cls.insertdelupdate("insert into Register values('" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox7.Text + "','" + TextBox12.Text + "','" + DropDownList1.Text + "','" + TextBox9.Text + "','" + TextBox11.Text + "','" + DropDownList2.Text + "')"); }