Subscribe to this list via RSS Blog posts tagged in ClockPick

Posted by on in Blogs
jQuery and ASP.NET MVC Model Binding to a List In ASP.NET MVC, when you want to submit a page with many instances of a certain type (e.g., a form with a list of phone numbers), the framework will recognize the form elements as a list if you use a specific format for the name attribute of the inputs. This allows you to have an action like this: public ActionResult UpdateInts(IList<int> ints) { The MVC framework, in this case, will look at all the inputs on your form, figure out which inputs correspond to which records on the for...
  • Page :
  • 1

Check out more tips and tricks in this development video: