auto add route parameter to url
Posted
by user276640
on Stack Overflow
See other posts from Stack Overflow
or by user276640
Published on 2010-03-22T21:14:36Z
Indexed on
2010/03/22
21:21 UTC
Read the original article
Hit count: 476
i have 2 urls on one page: http://host/home/list
and http://host/home/list/1
. if i click on second url then first url renders with param 1, so url1 equals ulr2 (url1 = http://host/home/list/1
and url2=http://host/home/list/1
)
i use such code
<%= Html.ActionLink("link", "DesignerFiles", "Home", null, null)%> url1
<%= Html.ActionLink("link", "DesignerFiles", "Home", new { id = 1} , null)%> url2
what the problem?
© Stack Overflow or respective owner