title: Nullable Object Must Have a Value ASP.NET MVC 5 Checkbox For
body: <p>Hi I have a CheckBox For</p>
  
  <pre><code>@Html.CheckBoxFor(model =&gt; model.VisitRequested.Value, new {onClick = "showHide();"})
  </code></pre>
  
  <p>It throws the exception (above) if the checkbox isn't clicked. I would like the value to be 0 or false if the check box remains unchecked.</p>
  
  <p>The model code is:</p>
  
  <pre><code>[DisplayName("Request a Visit")]
  public Nullable&lt;bool&gt; VisitRequested { get; set; }
  </code></pre>