ASP.NET MVC – Custom CheckBox as Solution of “String was not recognized as a valid Boolean”

  In case when you use Html.CheckBox(“IsNew”) the MVC render the html: <input checked="checked" id="IsNew" name="IsNew" type="checkbox" value="true" /> <input name="IsNew" type="hidden" value="false" /> You can notice that there are two input element with identical name. Internet browsers does not send any value for checkbox if it is not checked. It is the reason why […]