public void DeleteRecord(int id) { try { SPChannelWrapper.DeleteByID(id); ScriptManager.AjaxSuccess = true; } catch (Exception ex) { ScriptManager.AjaxSuccess = false; ScriptManager.AjaxErrorMessage = string.Format(ex.Message); return; } }