Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/Reporting/CS/ReportWebDemo/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/Reporting/CS/ReportWebDemo/Global.asax

<%@ Application Language="C#" %>

<script runat="server">

    void Application_Start(object sender, EventArgs e) {
        ReportWebDemo.ReportCaching.CacheReportHelper.StartCreatingReports();
        Utils.EnsureRequestValidationMode();
    }
    
    void Application_PreRequestHandlerExecute(object sender, EventArgs e) {
        DevExpress.Web.ASPxClasses.ASPxWebControl.GlobalTheme = Utils.CurrentTheme;
        if(CurrentPage != null) {
            CurrentPage.PreInit += Page_PreInit;
        }
    }  
    
    static Page CurrentPage {
        get { return HttpContext.Current.CurrentHandler as Page; }
    }

    static void Page_PreInit(object sender, EventArgs e) {
        Utils.RegisterCurrentWebFormsDemo(CurrentPage);
        Utils.InjectIECompatModeMeta(CurrentPage.Master, 8);
    }
    
</script>