asp.net mvc - MVC Checkbox returns "false" or ",false" -
i'm using <li><%= html.checkbox("ispublic", false) %></li>
checkbox. creates <input id="ispublic" name="ispublic" type="checkbox" value=""><input name="ispublic" type="hidden" value="false">
.
i can't return true value. when checked, , submitted fromcollection, it's value ",false" still gets interpreted false.
without checkbox can have controller method public jsonresult creatething(mything thing)
, correctly places fields. checkbox i'll have manually set every field formcollection unless can checkbox automatically interpreted correctly.
i appreciate assistance.
Comments
Post a Comment