I am trying to generate the full URL for a route link in my razor view for ASP.NET MVC 3. I know I can use Html.RouteLink to generate a link however all I want is the URL, not the surrounding a tag wrapper. Is there a way to do this?
3 Answers
Use RouteUrl as tvanfosson proposes.
I would just want to mention T4MVC adds the extension ActionAbsolute to create a full url from an action.