Correcting MVC 3 EditorFor Template Field Names When Using Collections
March 25 2011 1 Comment
So, I recently ran into a problem with ASP.NET MVC 3 and editor templates when dealing with models that contain collections. If you handle the collection directly in the view, it works fine: In the above example, the fields will receive the names “Locations[0].Name” and “Locations[0].Description”, and so on for each field. This is correct, [...]