views:

102

answers:

0

With MVC.NET I can use Url.Action() to generate a raw URL that includes the controller and the action and the route parameters.

Example:

<%= Url.Action("Edit", new { customerId=Model.id }) %>

Produces: /Customer/Edit/123

However, I do not see a helper to simply encode the route portion only, which would be customerId above, like this:

/123

Any ideas?