Hi, I have a dynamically populated drop down menu which is working fine. I would like however to add a non dynamic item at the top of the list that says "SELECT EMPLOYEE". This should not interfere with the dynamic content. Coud someone take a look and explain to me how this is done? Thanks.
My code for the list:
<asp:DropDownList ID="employeeList" runat="server" AutoPostBack="true" onselectedindexchanged="employeeList_SelectedIndexChanged"></asp:DropDownList>
My code for dynamically populating the list.
private void LoadEmployeesList();
string connectionstring = configurationManager.ConnectionStrings["Dorknozzle"].ConnectionString;
conn = new SqlConnection(connectionString);
comm = new SqlCommand("SELECT EmployeeID, Name FROM Employees", conn);
reader = comm.ExecuteReader();
EmployeeList.Datasource = reader;
EmployeeList.DataValueField = "EmployeeID";
EmployeeList.DataTextField = "Name";
dbErrorLabel.Text = "Problem populating list.";
Thanks for any help.