I am using CheckBoxFor for submitting boolean value.

Demo.cshtml

<div class="checkbox">
     <label>@Html.CheckBoxFor(i => i.ReportModel.Is_XRay.Value) X-Ray</label>
</div>

enter image description here

Even I've selected checkbox, I am getting false in hidden value.

Also When I submit page, I am getting checkbox value null

Related posts

Recent Viewed