0

在 Preview 5 中,以下是运行良好的操作链接:

  1.             listing is the controller and about is the action
    

2.

var values = new RouteValueDictionary();

            text and actionname are both strings    

Html.ActionLink(文本,动作名称,值);

我将如何转换这些以在 RC 版本中畅通无阻?

4

3 回答 3

1

也许我不明白你的问题,但你上面的例子应该适用于 ASP.NET MVC RC。

于 2009-02-14T00:58:00.257 回答
0

我有同样的问题。

我得到了最新的 MVC Futures,并且修复了它。

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

于 2009-03-16T06:35:14.523 回答
0

不,在 RC 中使用这个会产生这个错误;

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

于 2009-02-19T04:38:27.787 回答