when passing a collection to EditorFor(), it generates invalid names for input elements
I have a BookCreateModel which consists of book's plane info such as Title, PublishYear & etc plus a collection of book Authors (complex type) : public class BookCreateModel { public string Title { get; set; } public int Year { get; set; } public IList<AuthorEntryModel> Authors { get; set; } } public class AuthorEntryModel { public string FirstName { get; set; } public string LastName { get; set; } } in CreateBook view I have used EditorFor helper : @Html.EditorFor(m => m.Authors, "AuthorSelector") Edit1: and AuthorSelector template is as below: <div class="ptr_authors_wrapper"> @for (int i =