从Web表单用户控件链接mvc3视图

我有一个现有的Web窗体Web应用程序。我想慢慢过渡到mvc3。为此,我希望能够使用Html.Action和Html.Render从我的新mvc3内容中的旧用户控件(System.Web.UI.UserControl)链接。可能吗?任何骇人听闻的解决方案都可以。     
已邀请:
遵循这些原则,应该使“ 0”起作用;在您的网络表单中:
<% var requestContext = new System.Web.Routing.RequestContext(
       new HttpContextWrapper(HttpContext.Current),
       new System.Web.Routing.RouteData());
   var urlHelper = new System.Web.Mvc.UrlHelper(requestContext); %>
我想对于for2来说同样适用。否则,只需使用Url.RouteUrl方法:
<a href=\"<%= urlHelper.RouteUrl(new { controller = \"Controller\", 
    action = \"Action\" }) %>\">To the MVC app!</a>
作为记录,我从以下答案中获得了答案:使用ASP.NET MVC时从WebForm访问HtmlHelpers     

要回复问题请先登录注册