One of the benefits to using ActionLink is so that I can change the format of my URL and have all my links update automatically, I get that.
But if I have "[controller]/[action]/[id]" setup as a route and use
Html.ActionLink("Something", new { action = "Edit", controller = "Products", id = p.productid })
then I change the route to "[controller]/[action]/[productname]" this won't render correctly because ActionLink doesn't know how to set "productname".
Am I missing something or am I to add every property to the anonymous object? And if so, what happens if I add properties to the Products class?
Can I pass in the object and have the ActionLink automatically set fields in the URL to corresponding properties in the object?
If I can't and I wanted to add this functionality, would I create a RouteHandler or would this be a helper method issue?
Thanks.
Gabe