예제 #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     try
     {
         bl.brocker_nm = TextBox1.Text;
         bl.contact_no = TextBox3.Text;
         bl.address1   = TextBox4.Text;
         bl.address2   = TextBox5.Text;
         bl.state_id   = Convert.ToInt32(DropDownList1.SelectedValue.ToString());
         bl.city_id    = Convert.ToInt32(DropDownList2.SelectedValue.ToString());
         dl.insertbrocker(bl);
         ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect", "alert('Brocker Created successfully'); window.location='brockre_master.aspx';", true);
     }
     catch
     {
     }
 }