Here's my simple actionlink:
<span>@Html.ActionLink(trip.TripDescription, "Index", "Home", new { trip = trip.Trpp, year = trip.TripYear })</span>
Here is my route for that link:
routes.MapRoute(
"Index",
"{controller}/{action}/{trip}/{year}",
new { controller = "Home", action = "Index", trip = "", year = "" }
);
and here is what is being rendered:
http://localhost:31065/Home/Index?trip=Green&year=2013
I'd like for it to render this instead:
http://localhost:31065/Home/Index/Green/2013
both of those urls work, but cosmetically I'd prefer the latter.
what do I need to change to have the parameters go behind slashes instead of using the old school ? and &
TIA