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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -