lundi 24 avril 2017

How do I check if a checkbox is checked on the controller page MVC5

Here is the cshtml page

<div class="form-group">
    @Html.Label("Please tick this box if you are signing up as a Student")
    @Html.CheckBoxFor(m => m.isNewlyEnrolled)
</div>

I want to check to see if its checked or not in the controller page. How do I go about doing this?




Aucun commentaire:

Enregistrer un commentaire