I have a form which contains a series of fields like:
For ASP.NET MVC 2 use this:
You need an extra hidden field User[i].Key. i is zero-based index. It should be uninterrupted.
when you model bind to a dictionary, you're actually binding to an
ICollection
. So you need User[x].Key and User[x].Value (to reconstitute the KeyValuePair object)>
References