asp.net mvc: why is Html.CheckBox generating an additional hidden input
Posted
by Omu
on Stack Overflow
See other posts from Stack Overflow
or by Omu
Published on 2010-04-23T08:53:03Z
Indexed on
2010/04/23
9:03 UTC
Read the original article
Hit count: 279
asp.net-mvc
I just noticed that Html.CheckBox("foo")
generates 2 inputs instead of one, anybody knows why is this so ?
<input id="foo" name="foo" type="checkbox" value="true" />
<input name="foo" type="hidden" value="false" />
Note: this checkbox is not checked
© Stack Overflow or respective owner