The latest MVC release contains some type safe html helper extension methods, for example, CheckBoxFor() and LabelFor() does anyone know if there is a particular reason why they haven't implemented a CheckBoxFor()?
Html – Why is there no Html.CheckBoxFor() method in .Net MVC
asp.net-mvchtml-helper
Related Topic
- Asp.net-mvc – Generate URL in HTML helper
- C# – Html.CheckBoxFor() checked problem in ASP.Net MVC 2
- Asp.net-mvc – HTML Encoding for HtmlHelper Extension Method
- Asp.net-mvc – Using MVC HtmlHelper extensions from Razor declarative views
- Asp.net-mvc – ASP.NET MVC 3 – Partial vs Display Template vs Editor Template
- C# – File Upload ASP.NET MVC 3.0
- C# – Returning a file to View/Download in ASP.NET MVC
- Asp.net-mvc – MVC 4 @Scripts “does not exist”
Best Answer
CheckBoxFor() wasn't finished in time for Beta. It should be available in the next preview release. As for the AddModelErrorFor() overload, there was never any need for it. Errors are supplied by the binders and validators, which use strings rather than expressions. If you can provide a scenario in which using an expression would provide a benefit over simply using strings, we can open a work item for this request.