In MVC 6, how to code checkbox list in view and pass the checked values to the controller?
问题 Sorry but most of my searches take me to old MVC codes. Any help will be appreciated. In MVC 6 with tag helpers, how do you code a set of checkboxes: Use tag helper for label so clicking it will toggle the checked value Save (Bind?) the checked value to the IsOptionSelected property Pass these checked values back to Controller after clicking Submit ? I was able to display the checkboxes with labels correctly, but I do not know how to pass the checked values back to the controller via the