tags:

views:

14

answers:

1

Hello

Is there some way of generating the link from the route-table without making it a link?

i.e only www.foo.com/someroute/34 without it being linked

/M

+1  A: 

You could use the RouteUrl extension method:

<%= Url.RouteUrl("Default", new { id = 75 }) %>

And if you want an absolute url:

<%= Url.RouteUrl("Default", new { id = 75 }, Request.Url.Scheme) %>
Darin Dimitrov