asked on
'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
I can run SELECT DISTINCT WHS FROM AER_DOCK_APPOINTMENTS and I get three returned entries, each two characters long. In the DropDownList on the page, I have those same three two-character long choices as ListItems. The Insert from the FormView works perfectly.<asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%# Bind("WAREHOUSE") %>'>
<asp:ListItem Selected="True"></asp:ListItem>
<asp:ListItem>LB</asp:ListItem>
<asp:ListItem>LP</asp:ListItem>
<asp:ListItem>SN</asp:ListItem>
<asp:ListItem>SS</asp:ListItem>
<asp:ListItem>WA</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%# Bind("WHS") %>'>
<asp:ListItem Selected="True"></asp:ListItem>
<asp:ListItem>LB</asp:ListItem>
<asp:ListItem>SN</asp:ListItem>
<asp:ListItem>SS</asp:ListItem>
</asp:DropDownList>