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

后端 未结 9 1892
我寻月下人不归
我寻月下人不归 2020-11-30 04:34

I have the following ActionLink in my view

<%= Html.ActionLink(\"LinkText\", \"Action\", \"Controller\"); %>

and it creates the follo

9条回答
  •  难免孤独
    2020-11-30 05:17

    I needed my menu links to be dynamic. Rather than implement a lot of extra code and routing for every single page I simple dispensed with the HTML helper.

    @item.MenuItemName
    

提交回复
热议问题