Ejemplo n.º 1
0
 protected void btnYes_Click(object sender, EventArgs e)
 {
     try
     {
         int c_id     = Convert.ToInt32(Session["company_id"]);
         int b_id     = Convert.ToInt32(Session["branch_id"]);
         int rowIndex = Convert.ToInt32(ViewState["unit_id"]);
         context.sp_DeleteParty(c_id, b_id, rowIndex);
         divalert.Visible = true;
         lblAlert.Text    = "Party Deleted Successfully ";
         CLR();
     }
     catch (Exception ex)
     {
         ErrorLog.saveerror(ex);
         //Do Logging
     }
 }