I want to pass an IEnumerable collection from view to controller using JQuery from view to controller in MVC3.
I have a page which takes IEnumerable Collection of Person model. After adding/modifying person collection using JQuery, I want to update the entire person collection by passing the collection to controller. I tried to pass the collection by constructing a array object in Jquery, but it did not work.
How can I pass the collection to controller?
It can be any collection, its not that only IEnumerable Collection.
It’s really urgent.
For this you need to have the names of the controls on the view to have the index of the collection like
Check this post of Phil Haack about this
Binding to a List