Why is there no Html.CheckBoxFor () method in .NET MVC?

The latest version of MVC contains some html type extension methods, for example CheckBoxFor () and LabelFor (), does anyone know if there is some reason why they did not implement CheckBoxFor ()?

+4
source share
1 answer

CheckBoxFor () was not completed during Beta. It should be available in the next preview release. As for the overload of AddModelErrorFor (), it was never necessary. Errors are delivered by binders and validators that use strings, not expressions. If you can provide a scenario in which using the expression will give an advantage over simple use of strings, we can open the work item for this query.

+2
source

All Articles