One option is to specify the name of the controller in the list of route values:
<%= Html.ActionLink("Test", "Index"
, new { controller = "MyOtherController", id = item.Id }) %>
An alternative is to use overload ActionLinkwith htmlAttributes = null:
<%= Html.ActionLink("Test", "Index"
, "MyOtherController", new { id = item.Id }, null) %>
In this case, the default route in the ASP.NET MVC pattern takes care of routing.
source
share