MVC: Drop-down List

Populate the list of drop-down options (using “ID” and “Description”) from within the Controller:

Then create a Drop-Down List within the View. Model.ID should refer to the source value, and then the list of options:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

CJayMead's SQL Server, Endeca, MS Office Help © 2018