开发者

asp.net mvc duplicate parameter

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜