MVC CheckBoxList model binding with non boolean

前端 未结 4 1205
清歌不尽
清歌不尽 2021-01-13 04:37

I want to bind a List to CheckBox and get the selected values. I need to display two such Checkbox tables and have to retrieve both the IDs.

Below is my ViewModel

4条回答
  •  臣服心动
    2021-01-13 05:14

    I would use https://www.nuget.org/packages/BeginCollectionItem/

    This will help you get the right sequence in binding using GUID

    Best Regard Burim

提交回复
热议问题