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