I have an MVC4 site, with (as part of a hidden form):
The value o
This behaviour changed between MVC3 and MVC4. In MVC3, if you have:
it would write very literally:
However, in MVC4, it follows the "checkbox" etc rules, so if the value is true you get:
and if it is false it is omitted completely:
To get around this, consider .ToString():
which then follows string rules rather than boolean rules.