示例#1
0
 protected void btn_sub_Click(object sender, EventArgs e)
 {
     try
     {
         bl.trp_naem = txt_nm.Text;
         bl.address1 = txt_add.Text;
         bl.phone    = txt_phn.Text;
         dl.inserttransport(bl);
         ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect", "alert('Transport Created successfully'); window.location='transport.aspx';", true);
     }
     catch
     {
     }
 }