kusanagi
kusanagi

Reputation: 14614

asp.net mvc duplicate parameter

i have 2 link on page PictureList

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

and

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

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

Upvotes: 0

Views: 233

Answers (1)

cem
cem

Reputation: 1911

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 })%>

Upvotes: 1

Related Questions