Using a checkbox list with Razor Pages for input to DB
问题 I want one of my inputs in a form to come from a list of checkboxes that the user selects. I've been going at this for several hours now, and I still don't understand what I need to do for this. Why is there so much help for MVC on this topic and hardly any for Razor? .cshtml <form method="post"> <label asp-for="ServiceRqLd.JobType" class="control-label"></label> <div class="form-check-inline"> @for (var i = 0; i < Model.JobTypes.Count(); i++) { <div class="form-check"> <input asp-for="@Model