/// <summary> /// /// </summary> public void SaveLogEvents(SetterDelegate setMethod) { foreach (int logEventID in GetSelectedEventIDs()) { setMethod.DynamicInvoke(logEventID); } Response.Redirect(Page.Request.Url.ToString(), false); }
public void SaveLogEvents(SetterDelegate setMethod) { foreach (ListViewDataItem item in LogLV.Items) { CheckBox toDeleteCB = item.FindControl("DelCB") as CheckBox; if (toDeleteCB.Checked) { int logEventID = int.Parse((item.FindControl("eID") as Literal).Text); setMethod.DynamicInvoke(logEventID); } } Response.Redirect(Page.Request.Url.ToString(), false); }