cwde0
在MVC中使用FlashViewer类型时,需要在Global.asax中配置一下路由信息,让路由忽略掉FlashViewer请求
- public static void RegisterRoutes(RouteCollection routes)
- {
- routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
- routes.IgnoreRoute("ActiveReports.ReportService.asmx/{*pathInfo}");
- routes.IgnoreRoute("Grapecity.ActiveReports.Flash.v7.swf");
- routes.IgnoreRoute("{*allActiveReport}", new { allActiveReport = @".*\.ar7(/.*)?" });
- routes.MapRoute(
- "Default", // Route name
- "{controller}/{action}/{id}", // URL with parameters
- new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
- );
- }
复制代码
|