/// <summary> /// Handles clear button action. /// </summary> protected void HeaderActions_ActionPerformed(object sender, CommandEventArgs e) { if (e.CommandName.Equals("clear", StringComparison.InvariantCultureIgnoreCase)) { if (!MembershipContext.AuthenticatedUser.IsAuthorizedPerResource("CMS.EventLog", "ClearLog")) { RedirectToAccessDenied("CMS.EventLog", "ClearLog"); } UserInfo ui = MembershipContext.AuthenticatedUser; // Deletes event logs of specific site from DB EventLogHelper.ClearEventLog(ui.UserID, ui.UserName, RequestContext.UserHostAddress, siteID); eventLog.ReloadData(); } }