/// <summary> /// Raises when a session is abandoned or expires. /// </summary> /// <param name="sender">The sourceRow of the event.</param> /// <param name="e">An EventArgs that contains the event data.</param> protected virtual void Session_End(object sender, EventArgs e) { if (Micajah.Common.Pages.PageStatePersister.IsInUse && FrameworkConfiguration.Current.WebApplication.ViewState.DeleteExpiredViewState) { ViewStateProvider.DeleteExpiredViewState(); } }
/// <summary> /// Raises when an application is started. /// </summary> /// <param name="sender">The sourceRow of the event.</param> /// <param name="e">An EventArgs that contains the event data.</param> protected virtual void Application_Start(object sender, EventArgs e) { RegisterResourceVirtualPathProvider(); Resources.ResourceManager.IgnoreCase = true; if (Micajah.Common.Pages.PageStatePersister.IsInUse && FrameworkConfiguration.Current.WebApplication.ViewState.DeleteExpiredViewState) { ViewStateProvider.DeleteExpiredViewState(); } }