Author: Scott Hanselman's Computer Zen - ASP.NET | Posted on: 2/12/2009 11:30:04 PM | Views : 880

Levi Broderick, a Senior Developer on ASP.NET MVC and all around smart dude, posted some details to an internal Microsoft mailing list today and I thought it was worth sharing. Levi agreed and I've expanded on it some. Phil blogged some about Model Binding to a List last October . The default model binder will handle a number of collection types for you, if you play by the rules and make your HTML form elements follow a certain format. If the method signature looks like this: public ActionResult Blah(Person[] people) { // ... } And we are given this input in our HTML: <input type="text" name="people[0].FirstName" value="George" /> <input type="text" name="people[0].LastName" value...(read more) ...

Go to the complete details ...