Ejemplo n.º 1
0
 protected void Application_EndRequest(object sender, EventArgs e)
 {
     if (MiniProfilerHelper.IsEnabled())
     {
         MiniProfiler.Stop();
     }
 }
Ejemplo n.º 2
0
        protected void Application_Start(object sender, EventArgs e)
        {
            RenderHelper.RenderMode = DevExpress.Web.ASPxClasses.ControlRenderMode.Lightweight;
            MiniProfilerHelper.RegisterPathsToIgnore();
            ASPxWebControl.CallbackError += new EventHandler(Application_Error);
#if DEBUG
            TestScriptsManager.EasyTestEnabled = true;
#endif
            WebApplication.SetShared(new MainDemoWebApplication());
        }
Ejemplo n.º 3
0
        protected void Application_BeginRequest(object sender, EventArgs e)
        {
            if (MiniProfilerHelper.IsEnabled())
            {
                MiniProfiler.Start();
            }
            string filePath = HttpContext.Current.Request.PhysicalPath;

            if (!string.IsNullOrEmpty(filePath) &&
                (filePath.IndexOf("Images") >= 0) && !System.IO.File.Exists(filePath))
            {
                HttpContext.Current.Response.End();
            }
        }