Html.ActionLink cannot be dynamically dispatched

后端 未结 1 1701
攒了一身酷
攒了一身酷 2020-12-03 13:33

I have a problem with MVC3

I\'m trying to use @Html.ActionLink() to generate a Link for titles in my blog project.

Using constant strings in

相关标签:
1条回答
  • 2020-12-03 13:55

    "Consider casting the dynamic arguments or calling the extension method without the extension method syntax."

    Posts.Title doesn't have a type (hence dynamic argument).

    Just cast it via (string)Posts.Title.

    0 讨论(0)
提交回复
热议问题