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

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

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




        
3条回答
  •  天命终不由人
    2021-02-07 21:45

    See http://www.hanselman.com/blog/ASPNETWireFormatForModelBindingToArraysListsCollectionsDictionaries.aspx for the syntax necessary to bind to a dictionary. Note in particular the example of binding MSFT + AAPL company tickers around halfway down that post.

提交回复
热议问题