I am trying to do this as asked earlier. The only difference that I found is additional List item that was included in above code.
I tried to use
AppendDataBoundItems=true but it is still not working. I also want to set the its default value to the value that was being displayed in label of itemtemplate i.e. DropDownList's
SelectedValue='<%# Eval("DepartmentName") %>' but thie property is not available to me in dropdownlist.
What could be the reason. ??
<asp:DropDownList ID="ddlDepartment_Edit" runat="server"
<asp:SqlDataSource ID="dsDepartment_Edit" runat="server"
ConnectionString="<%$ ConnectionStrings:BlackHillsConnect %>"
<asp:Label ID="lblDepartmentName" runat="server" Text='<%# Eval("DepartmentName") %>' >
I am using