I have the following code in my view:
@Html.ActionLink(item.Title, "Articles/Details", New With {.id = item.ArticleId})
It produces the following link:
/Blog/Article/Details/1
I want it to produce this, instead:
/Article/Details/1
I tried messing with the parameters, but I'm not sure how to make it do what I want. How can I do this? Thanks.
Use this overload
So your code can be written like
Check this msdn page to see all available overloads