【发布时间】:2018-06-04 09:32:10
【问题描述】:
我不知道我的路由配置出了什么问题。
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
但是@Url.Action("Index","Agent") 返回
而不是
请让我知道缺少什么:)
附言 我不想打扰默认路由设置,即
【问题讨论】:
标签: c# asp.net-mvc asp.net-mvc-5 asp.net-mvc-routing aspnetboilerplate