SyntaxFix
Write A Post
Hire A Developer
Questions
you can use this:
var list = new SelectList(countryList, "Id", "Name"); ViewBag.countries=list; @Html.DropDownList("countries",ViewBag.countries as SelectList)