开发者

asp.net mvc duplicate parameter

开发者 https://www.devze.com 2022-12-21 19:25 出处:网络
i have 2 link on page PictureList <%= Html.ActionLink(\"pic\", \"PictureList\", \"Admin\")%> a开发者_StackOverflownd

i have 2 link on page PictureList

<%= Html.ActionLink("pic", "PictureList", "Admin")%>

a开发者_StackOverflownd

<%= Html.ActionLink("pic", "PictureList", "Admin", new { id = item.MenuId })%>

after click on second link, first link catch id parameter. how can it be solved?


I think, your link's redirecting to same action. So you may want to assign the value of id

<%= Html.ActionLink("pic", "PictureList", "Admin", new { id = 0 })%>
0

精彩评论

暂无评论...
验证码 换一张
取 消