Displaying enum as select list in ASP.NET Core

added by DotNetKicks
3/24/2020 2:56:31 PM

458 Views

Some properties of model classes come as enums and we want to show enum values in select list when edit form is opened. Sometimes we want enum element names but sometimes we want to use custom names or even translations. his blog post demonstrates how to get enum element names to select list on ASP.NET Core.


0 comments