begincollectionitem

A Partial View passing a collection using the Html.BeginCollectionItem helper

陌路散爱 提交于 2019-11-25 21:53:42
问题 I made a small project to understand the answer from Stephen Muecke here: Submit same Partial View called multiple times data to controller? Almost everything works. The javascript adds new fields from the Partial View, and I can tell they\'re bound to the model by the \"temp\" values inserted by the controller method for the partial view. However, when I submit the new fields the AddRecord() method throws an exception showing that the model isn\'t getting passed in (\"Object reference not