Ok, so I have an enum from which I make a select list. After I save data, on view it display the value (number) and I want to see the text. How do I do that?
- public enum IsolationType
- {
- Mechanical = 1,
- Electrical = 2
- }
- >Isolation Type
- class="form-control" style="font-size:12px;">@Html.DisplayFor(modelItem => item.IsoType)



Viswanatha SwamyRank #43 · 33.4K reputationPosted May 27, 2020, 2:13 AM EDT
Viswanatha SwamyRank #43 · 33.4K reputationPosted May 27, 2020, 1:23 AM EDT
Marius VasileRank #785 · 2.9K reputationPosted May 27, 2020, 1:30 AM EDT
Viswanatha SwamyRank #43 · 33.4K reputationPosted May 27, 2020, 1:35 AM EDT
Marius VasileRank #785 · 2.9K reputationPosted May 27, 2020, 4:58 AM EDT