title: Why is my hidden input writing: value="value" instead of true/false?
body: <p>I have an MVC4 site, with (as part of a hidden form):</p>
  
  <pre><code>&lt;input name="somefield" type="hidden" value="@ViewBag.Test"/&gt;
  </code></pre>
  
  <p>The value of <code>ViewBag.Test</code> is <code>true</code>. The form field is posting to an input parameter of the form:</p>
  
  <pre><code>public ActionResult SomeAction(bool somefield = false, ...)
  </code></pre>
  
  <p>but <code>somefield</code> is always <code>false</code>. Upon investigating, I see that the source code has:</p>
  
  <pre><code>&lt;input name="somefield" type="hidden" value="value"/&gt;
  </code></pre>
  
  <p>However, I <em>know</em> this used to work. What has happened, and what can I do?</p>