Member
22 Points
75 Posts
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) ?
Regards,
Sentoso
Member
22 Points
75 Posts
Re: DropDownList not working
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)
How to display Text (sectorname) ?
Regards,
Sentoso