How to bind Dictionary type parameter for both GET and POST action on ASP.NET MVC

前端 未结 2 1371
梦谈多话
梦谈多话 2021-01-20 22:02

I want to define a view which displays a list of label and checkbox, user can change the checkbox, then post back. I have problem posting back the dictionary. That is, The d

2条回答
  •  轮回少年
    2021-01-20 22:23

    Take a look at this post by scott hanselman. There're the examples of model binding to a dictionary, lists, etc

提交回复
热议问题