Question: I am adding a WebForm from which I would like to resolve routes to URLs. For example, in MVC I would just use 

```
return RedirectToAction("Action", "Controller");

```

So, if you have a way of getting to that same URL from a WebForm in the same application, it would be appreciated.

Answer: 
Try something like this in your Webform:

```
<% var requestContext = new System.Web.Routing.RequestContext(
       new HttpContextWrapper(HttpContext.Current),
       new System.Web.Routing.RouteData());
   var urlHelper = new System.Web.Mvc.UrlHelper(requestContext); %>

<%= urlHelper.RouteUrl(new { controller = "Controller", action = "Action" }) %>

```
If you want to stay away from any MVC dependencies then this is the solution I came up with. It's very close to the accepted answer. I have a class my webform pages inherit and this UrlHelper is available in the ASPX pages.

```
using System.Net.Http;
using System.Web;
using System.Web.Http.Routing;

public class ClassOtherPagesInherit {
    public UrlHelper Url = new UrlHelper(new HttpRequestMessage(new HttpMethod(HttpContext.Current.Request.HttpMethod), HttpContext.Current.Request.Url));
}

```

Then you can call this UrlHelper object like this

```
<%Url.Route("string", new {}) %>

```