ViewBag.DropDown = new SelectList(IEnumerable of elements to be listed in the dropdown, "element field to be used as index", "element field to be used as display text")};
@Html.DropDownList("DropDown")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)