I've ben following Scott Guthrie's tutuorials on how to build a MVC app, bt some tings he did back then doesn't really work anymore. E.g:
<%= Html.ActionLink(category.CategoryName, new { action="List", category.CategoryName}) %>
I figured this one out myself (yey!) and instead I used:
<%
= Html.ActionLink(category.CategoryName,"List", new { Controller="Products", category=category.CategoryName })%>
no worries, perfectly logical.. But something I havn't found a replacement for is(in the controller):
RedirectToAction(new { Action = "Category", ID = product.CategoryID });
I see that I can redirect to an action with :
RedirectToAction(
"Category");
and even another controller with;
RedirectToAction("Category","Products") and also something strange that takes a
RedirectToAction(System.Web.Routing.RouteVauleDictionary) parameter (whatever that is)
So how would you now redirect to an action and pass a parameter?