
Create Drop-down list with enum values in MVC:
Inside model we need to define:
- a property of enum type.
- a property of SelectedListItem as IEnumerable.
- Inside constructor filling Dropdown list from enum.
![]() |
| Model |
Enum (County list):
![]() |
| Enum |
![]() |
| Action |
View (Calling mode on top and filling dropdown list)
![]() |
| View |









Its very fantastic article, its very helpful
ReplyDelete