mvc3 razor editortemplate with abstract classes
问题 this is a follow up question from MVC3 Razor httppost return complex objects child collections. The example I gave was very simple. The child collection is actually a collection of objects that all come from an abstract base class. So the collection has a list of base classes. I have created a template for each derived class and tried using if child is of type then give the template name as a string. The templates are rendered to the view but not populated on the post back. I am not sure how