2
我有这样的路由映射在Global.ascx:地图自定义路由
routes.MapRoute(
"Help", // Route name
"Help", // URL with parameters
new { controller = "Home", action = "Help", id = UrlParameter.Optional } // Parameter defaults
);
因此,当用户键入http://mysite.com/Help他会从Home.Help
行动的响应。
但如果我尝试调用该航线与参数id=something
http://mysite.com/Help/something 我得到一个错误The resource cannot be found.
我怎么能解决呢?