asp.net mvc Html.ActionLink() keeping route value I don’t want

The solution is to specify my own route values (the third parameter below)

<%= Html.ActionLink("LinkText", "Action", "Controller", 
    new { id=string.Empty }, null) %>

Leave a Comment