Hi I have a CheckBox For
@Html.CheckBoxFor(model => model.VisitRequested.Value, new {onClick = "showHide();"})
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.
The model code is:
[DisplayName("Request a Visit")]
public Nullable<bool> VisitRequested { get; set; }