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
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
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) %>