Feb 24, 2019 02:23 AM|Sentoso|LINK
Thanks Jimmy, for the idea,
I wrote the code like the code below and it works, but when I clicked the dropdownlist it only show for Id (sectorid) not the Text (sectorname)
@Html.DropDownList("sectorid", new SelectList((System.Collections.IEnumerable)ViewData["DBSector"]), "sectorid", "sectorname")
How to display Text (sectorname) ?