My dropdown will be populated with data from an entity model as follow:
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();
How is it possible to put a “Select Value…” item on top of the dropdown list?
Add this code after binding is done for DropDownList1.