C
chongo
hi,
I'm a newbie to asp.net.
I have a dropdrown list
<asp:dropdownlist id="department" runat="server"
DataValueField="departmentid" DataTextField="departmentname">
<asp:ListItem Value="0">No Department</asp:ListItem>
</asp:dropdownlist>
The problem I'm having is that when I bind a dataset to the
dropdownlist, it erases the "<asp:ListItem Value="0">No
Department</asp:ListItem>".
Is there a way to bind the data to the dropdownlist without erasing
the listItems.
-dan
I'm a newbie to asp.net.
I have a dropdrown list
<asp:dropdownlist id="department" runat="server"
DataValueField="departmentid" DataTextField="departmentname">
<asp:ListItem Value="0">No Department</asp:ListItem>
</asp:dropdownlist>
The problem I'm having is that when I bind a dataset to the
dropdownlist, it erases the "<asp:ListItem Value="0">No
Department</asp:ListItem>".
Is there a way to bind the data to the dropdownlist without erasing
the listItems.
-dan