MVC4中加.aspx后缀,是可以匹配到对应的action
MVC4中加.aspx后缀,是可以匹配到对应的action
routes.MapRoute(
name: "Default00",
url: "Article/{filename}-{id}.aspx",
defaults: new { controller = "Article", action = "Details", filename = "aaa", id = UrlParameter.Optional }
);
而加.html却不可以,问题在哪?请教各位大侠
routes.MapRoute(
name: "Default000",
url: "Article/{filename}-{id}.html",
defaults: new { controller = "Article", action = "Details", filename = "aaa", id = UrlParameter.Optional }
);