I’m creating a view based on a list, intending to allow users to edit one or more members of the list, at the same time, on the same page.
I’d like to collect all of the edited (or, failing that, all) fields into a data-structure (a list or array?) to pass back to the controller, who will then update my database, as appropriate, for each element in the list.
Is there an MVC .NET shorthand for building this type of view, or do I have to manually collect this data on the client side (say, with Javascript) before passing it back to the server?
You may take a look at the following blog post. Also checkout the following post to better understand the expected wire format for lists and dictionaries used by the default model binder in ASP.NET MVC.