我正在使用MVC4.
我有以下下拉列表/选择列表:
@Html.DropDownList("EmployerID", String.Empty) ViewBag.EmployerID = new SelectList(db.Employers, "EmployerID", "Name", contact.EmployerID);
我希望这个下拉列表/选择列表按"名称"排序.我该怎么办?
非常感谢!:)
asp.net-mvc html-select selectlist
asp.net-mvc ×1
html-select ×1
selectlist ×1