Proper usage of .net MVC Html.CheckBoxFor

That isn’t the proper syntax The first parameter is not checkbox value but rather view model binding for the checkbox hence: @Html.CheckBoxFor(m => m.SomeBooleanProperty, new { @checked = “checked” }); The first parameter must identify a boolean property within your model (it’s an Expression not an anonymous method returning a value) and second property defines … Read more