我有MVC3的问题
我正试图@Html.ActionLink()在我的博客项目中为标题生成链接.
在ActionLink作品中使用常量字符串只是花花公子,但如果我使用Posts.Title(当前Post模型的标题被循环),我会得到以下异常:
CS1973: 'System.Web.Mvc.HtmlHelper<dynamic>' has no applicable method
named 'ActionLink' but appears to have an extension method by that name.
Extension methods cannot be dynamically dispatched. Consider casting
the dynamic arguments or calling the extension method without the
extension method syntax.
Run Code Online (Sandbox Code Playgroud)