现在我是 MVC 的新手..请解决我的问题..谢谢提前
**This is MY View**
@Html.DropDownList("SalutationName", (IEnumerable<SelectListItem>)ViewBag.Titles, "--------------Select-------------", new { id = "R_title" })
**This is My Controller**
public ActionResult Index()
{ var list=RoleID();
IList<salutation> p = list;
ViewBag.Titles = new SelectList(p.AsEnumerable(), "SalutationID", "SalutationName");
return View();
}