title: Checkbox checked value not set as expected
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2860940/asp-net-mvcwhy-does-the-checkboxfor-render-an-additional-input-tag-and-how-can">ASP.NET MVC:Why does the CheckBoxFor render an additional input tag and how can I get the value using the FormCollection</a>  </p>
  </blockquote>
  
  
  
  <p>I needed to create a check box and bind the model to the check box. Assume instead of the model value im just assigning false as the value. Code given bellow.</p>
  
  <pre><code> @Html.CheckBox("abcd",false)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>&lt;input id="abcd" name="abcd" type="checkbox" value="true" /&gt;
  &lt;input name="abcd" type="hidden" value="false" /&gt;
  </code></pre>
  
  <p>The output of the HTML being generated is shown above.  I do understand why the hidden check box is put by the razor view engine. My question is if the value is false then the check box visible should be <code>value="false"</code> (unchecked). </p>
  
  <p>Why it has put <code>value="true"</code> (checked). Same applies for the checkboxfor helper. What is wrong or could you explain how to implement this?</p>