【发布时间】:2019-01-28 13:10:22
【问题描述】:
我写了一条路线:
routes.MapRoute(
name: "LoadDefaultPage",
url: "Load",
defaults: new { controller = "Load", action = "Index" }
);
它适用于http://localhost/Load。但是我需要对http://localhost/Load/bla、http://localhost/Load/bla/bla/、http://localhost/Load/bla/bla/bla等做同样的操作。如何描述呢?
【问题讨论】:
-
你必须爱那些不加评论而投票的人.....
标签: c# asp.net-mvc asp.net-mvc-5 routing