1

Is passing a 2 dimensional array from the view to the controller a possibility? My view mimics a spreadsheet. It has 20 columns and 500 rows of text areas (possibly not the best way to accomplish this). How do I get these values to the controller, while still being able to track which row each value belongs to?

The solution for passing a simple array is available here, any ideas on 2D? What should the action method parameter look like? I've tried

string[][] values

I'm using ASP.NET MVC 4 and Razor.

Community
  • 1
  • 1
lala
  • 83
  • 2
  • 9

0 Answers0