I have a view that contain a table with rows and 3 editable columns
Col1: First Name
Col2: Age
Col3: Year
And you can have many rows of this data and edit it..
Is it better to do a Form Submit or have jquery Submit the data to the controller?
How do define the Controller to handle this type of submit? Do I just give each ROW,COL and name and then use the FormCollection to loop through? It seems like I should be able to define a list as a param in the controller..
any suggestions?
I don’t think it matters much how you submit it, do whatever works best with your UI/validation/etc.
You can bind your controller action to an array/list/collection. Take a look at this…
http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx