Is POSTing a Dictionary to an .NET MVC action possible?

前端 未结 3 559
轻奢々
轻奢々 2021-02-07 20:50

I have a form which contains a series of fields like:




        
3条回答
  •  醉梦人生
    2021-02-07 21:49

    It's possible for lists, I'm sure it carries over for dictionaries as well. Read through Model Binding to a List by Phil Haack for some understanding on how list binding works.

    You should be able to do this:

    
    
    
    
    
    

提交回复
热议问题