I’m writing a helper method for ASP.NET MVC and I need to call Url.Content to get an appropriate URL for the context. However, in order to create a new UrlHelper() I need to get the current RequestContext (System.Web.Routing.RequestContext to be precise) and I’m not sure how to grab it. Anyone know?
I’m writing a helper method for ASP.NET MVC and I need to call Url.Content
Share
Noticed this was still unanswered. As of MVC 1.0 you can do: