Dropdroplist检索问题:
public ActionResult About()
{
ViewBag.Purpose = new SelectList(db.Purposes, "purpose");
dynamic obj = new ExpandoObject();
obj.dua = db.Duass.ToList();
return View(obj);
}
在视图部分
@using MockUp.Models
@model dynamic
@ Html.DropDownList(“目的”,“选择”)
发生输出错误: