asp.net mvc duplicate parameter
i have 2 link on page PictureList
<%= Html.ActionLink("pic", "PictureList", "Admin")%>
<%= 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 })%>
精彩评论