Пример #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     try
     {
         bl.stu_name = dwd_stu.SelectedItem.Text;
         bl.vat_1    = txt_nm.Text;
         bl.vate     = txt_tax.Text;
         if (txt_add_vat.Text != string.Empty)
         {
             bl.vat_2 = txt_add_vat.Text;
         }
         else
         {
             bl.vat_2 = " ";
         }
         bl.apppli_dt = txt_date.Text;
         dl.inset_statutory(bl);
         dl.slelct_stu_id(bl);
         ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect", "alert('Insert successfully'); window.location='add_satutary.aspx';", true);
     }
     catch
     {
     }
 }