title: MVC ASP.NET Best way to get 52 textbox key/values from View to Controller
body: <p>I'm hoping that it isn't to pass each as a parameter to the controller post method..</p>
  
  <p>Have a grid of 52 text boxes representing weeks in a year, each will be containing a decimal value, need ALL of these passed back to the controller for mass updating of the database..</p>
  
  <p>edit: Adding more details.</p>
  
  <p>So my action Index(); returns a view with a list of 52 objects in it.</p>
  
  <p>so   </p>
  
  <p>return View(dates);</p>
  
  <p>inside the view I do a foreach for all the objects of that type in the model, and put their values into textboxes, I then want to change them and hit submit.</p>
  
  <p><strong>is there any way to get the updated list into my POST controller without having to give it 52 parameters with the id's of the textboxes?</strong></p>
  
  <p>Thanks a lot in advance!</p>
  
  <p>edit: Maybe there is a way I can post the forum to the controller and iterate through the textbox controls and get out id/value, any idea how?</p>