protected void onDelete(object source, CommandEventArgs e) { BLL_VET_Index objBLLIndx = new BLL_VET_Index(); Vetting_Id = Convert.ToInt32(e.CommandArgument); try { int res = objBLLIndx.VET_Del_PlannedVetting(Vetting_Id, Convert.ToInt32(Session["USERID"])); if (res < 0) { Bind_VettingIndex(); } } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }