前台代码

@Html.DropDownList("SerialName", ViewBag.selList1 as IEnumerable<SelectListItem>, new { @class = "form-control"})


后台cs代码

public ActionResult Login(string returnUrl)
{
ViewBag.selList1 = new SelectList(new String[] { "a", "b", "c" });
return View();
}


这样直接可以