asp.net mvc - RouteLink without link? -
Is linking to the route table without linking?
i.e. only www.foo.com/someroute/34 without linking
/ m
You can use the extension method:
& lt;% = Url.RouteUrl ("default", new {id = 75})% & Gt;
And if you want a full url:
& lt;% = Url.RouteUrl ("default", new {id = 75} Request Url.Scheme)% & gt;
Comments
Post a Comment