How do I use Asp MVC Url Helpers to generate RESTful links?

Posted by Josh on Stack Overflow See other posts from Stack Overflow or by Josh
Published on 2010-04-14T21:27:47Z Indexed on 2010/04/14 21:43 UTC
Read the original article Hit count: 218

Filed under:

I'm trying to use Html.ActionLink to generate a link with in this form:

/Action/Model/Id/Parameter1/Parameter2

I've used: <%= Html.ActionLink("Link Text", "Action", "Model", new { id = var, parament1=var1 }, null) %> but it always ends up looking like /Action/Model/Id?parameter1=variable

I've seen similar questions on Stackoverflow and elsewhere, but I can't find a solution that works/makes sense. Any help would be appreciated.

© Stack Overflow or respective owner

Related posts about asp.net-mvc-routing