예제 #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     ModelBinders.Binders.DefaultBinder = new DevExpress.Web.Mvc.DevExpressEditorsBinder();
     SessionFixed.SetSessionValueProvider(new WebSessionValueProvider());
 }
예제 #2
0
 protected void Application_Start()
 {
     DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Disabled;
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     ModelBinders.Binders.DefaultBinder = new DevExpress.Web.Mvc.DevExpressEditorsBinder();
     SessionFixed.SetSessionValueProvider(new WebSessionValueProvider());
     ModelBinders.Binders.Add(typeof(decimal), new DecimalModelBinder());
     ModelBinders.Binders.Add(typeof(double), new DoubleModelBinder());
     DevExpress.Web.Mvc.MVCxWebDocumentViewer.StaticInitialize();
 }