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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -