Dynamic list of checkboxes and model binding

前端 未结 2 2103
广开言路
广开言路 2020-12-14 21:13

I\'m trying to create a view that contains a list of checkboxes that is dynamically created from a database, and then retrieve the list of selected ones when the form is pos

2条回答
  •  孤城傲影
    2020-12-14 22:09

    Also a good answer in this question: CheckBoxList multiple selections: difficulty in model bind back

    It has a solution that uses a custom Editor Template.

提交回复
热议问题