ASP.NET MVC URL Routing with Multiple Route Values

后端 未结 3 976
栀梦
栀梦 2020-12-22 19:11

I am having trouble with Html.ActionLink when I have a route that takes more than one parameter. For example, given the following routes defined in my Global.asax file:

3条回答
  •  忘掉有多难
    2020-12-22 19:44

    Garry (above) is correct. You can use Mr. Haack's route debugger for MVC. It can help resolve routing issues by showing you which routes are hit and when.

    Here is the Blog Post. And here is the Zip File.

提交回复
热议问题