예제 #1
0
 protected void LinkButton2_Click(object sender, EventArgs e)
 {
     try
     {
         bl.item_grp_nm = txt_add_pro.Text;
         dl.insertitemgrp(bl);
         Response.Redirect("~/item_msater.aspx");
     }
     catch
     {
     }
 }
예제 #2
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     try
     {
         bl.item_grp_nm = txt_add_pro.Text;
         //bl.vat_1 = dwd_vat.Text;
         //bl.vat_2 = DropDownList1.Text;
         dl.insertitemgrp(bl);
         ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect", "alert('Item Group Created successfully'); window.location='itemgrp.aspx';", true);
     }
     catch
     {
     }
 }