Find solution

How to create a generic View for different Models?

Check our answers to ‘How to create a generic View for different Models?’ - we found 16 replies and comments relevant to this matter. The best answers are submitted by users of Stack Overflow, Quora and Yahoo! Answers.

Best solution

  • Combined Multiple Models into Single View - Create Problem

    I'm trying to combine the Address and Country Create Views into a single view. I'm using MVC 3 with Repository Scaffolding & ASPX Views. I currently have a Country drop-down list that is already populated, and am trying to add this to the Address Create View. I have the Edit View working just fine. However when I try to create a new Address it adds a new Country with a blank name even though I choose a Country in the drop down list. I feel like I'm missing something very fundamental because...


    Create the drop down list for the scalar property CountryID instead of Country.ID <div class="...

    Mark as irrelevant Undo

Other solutions