相关疑难解决方法(0)

无法动态调度Html.ActionLink

我有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)

c# asp.net-mvc html-helper

56
推荐指数
1
解决办法
2万
查看次数

标签 统计

asp.net-mvc ×1

c# ×1

html-helper ×1