“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.
More Related Contents:
- HTML.ActionLink method
- Razor: Declarative HTML helpers
- ASP.NET MVC DropDownListFor with model of type List
- I want to understand the lambda expression in @Html.DisplayFor(modelItem => item.FirstName)
- MVC HTML Helpers and Lambda Expressions
- Conditional html attribute with Html Helper
- ASP.NET MVC $.post call returning string…need help with format for jqGrid
- Making a Simple Ajax call to controller in asp.net mvc
- Weird Error Upgrading ASP.NET MVC from 4 to 5
- Make sure that the controller has a parameterless public constructor error
- Preprocessor directives in Razor
- DropDownList in MVC 4 with Razor
- ReSharper “Cannot resolve symbol” even when project builds
- Injecting dependencies into ASP.NET MVC 3 action filters. What’s wrong with this approach?
- Deserialising JSON to derived types in Asp.Net Web API
- Difference between MVC 5 Project and Web Api Project
- Get chrome’s console log
- How to implement custom authentication in ASP.NET MVC 5
- ASP.NET MVC – passing parameters to the controller
- Is there a RangeAttribute for DateTime?
- Return HTML from ASP.NET Web API
- Create zip file from byte[]
- Custom model binder for a property
- Email model validation with DataAnnotations and DataType
- Correct way to use HttpContext.Current.User with async await
- Web API in MVC solution in separate project
- How to create Select List for Country and States/province in MVC
- Repository Pattern, POCO, and Business Entities
- What is the difference between DependencyResolver.SetResolver and HttpConfiguration.DependencyResolver in WebAPI
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method in MVC 4