RouteLink without link?
Is there some way of generating the link from the route-table without making it a link?
i.e only w开发者_JAVA技巧ww.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) %>
精彩评论