MVC5布局页的部分动态数据问题,我用了@Html.Action(“”,””)来动态显示数据 routes.MapRoute(null, "news/{area}", new { controller = "news", action = "index" }, new { area = @"[a-zA-Z]+" }); /news/beijing,或者是/news/index访问就会出错 实在找不出什么解决办法了,求助大伙 |
|
100分 |
|
不是我要的内容啊 |
|
100分 |
routes.MapRoute(“A”,
“Home/a.html”, new { controller = “Home”, action = “a” } ); routes.MapRoute(“B”, “Home/Home{id}.html”, // 带有参数的 URL new { controller = “Home”, action = “Index”, Id = 0 } ); routes.MapRoute(“topic”, “Home/Topic{Id}.html”, new { controller = “Home”, action = “Topic”, Id = 0 } ); 在HomeController public ActionResult Topic() |