How do I generate a URL outside of a controller in ASP.NET MVC?
How do I generate a URL pointing to a controller action from a helper method outside of the controller? Pass UrlHelper to your helper function and then you could do the following: public SomeReturnType MyHelper(UrlHelper url, // your other parameters) { // Your other code var myUrl = url.Action("action", "controller"); // code that consumes your url } L01NL You could use the following if you have access to the HttpContext : var urlHelper = new UrlHelper(HttpContext.Current.Request.RequestContext); Alexei Using L01NL's answer, it might be important to note that Action method will also get