我的下拉列表将填充来自实体模型的数据,如下所示:
HotelTestDatabaseEntities hotelData = new HotelTestDatabaseEntities();
var afdelingQuery = from afd in hotelData.Afdelings
orderby afd.afdelingNaam
select afd;
DropDownList1.DataValueField = "afdelingID";
DropDownList1.DataTextField = "afdelingNaam";
DropDownList1.DataSource = afdelingQuery;
DataBind();
如何将“选择值...”项放在下拉列表的顶部?