来自codeplex预览版5的MVC RC / Beta中的Actionlink

时间:2009-02-13 23:47:33

标签: asp.net-mvc actionlink

在预览版5中,以下是运行良好的动作链接:

  1.             listing is the controller and about is the action
    
  2. 2

    var values = new RouteValueDictionary();

                text and actionname are both strings    
    

    Html.ActionLink(text,actionName,values);

    我会将这些转换成什么来解除RC版本的阻止?

3 个答案:

答案 0 :(得分:1)

也许我不理解您的问题,但您的上述示例应该可以与ASP.NET MVC RC一起使用。

答案 1 :(得分:0)

在RC中使用它不会产生此错误;

找不到方法:'System.String System.Web.Mvc.Html.LinkExtensions.RouteLink(System.Web.Mvc.HtmlHelper,System.String,System.Web.Routing.RouteValueDictionary,System.Web.Routing.RouteValueDictionary )”。

答案 2 :(得分:0)

我遇到了同样的问题。

我得到了最新的MVC期货,并修复了它。

http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24142

相关问题