Deeee 0 Newbie Poster

Hi all,

I have a bit of a problem with the selected value of a drop down box in asp.
i get this error:

'drpSponsor' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value

my code for the binding is this:

<asp;DropDownList ID="drpSponsor" runat="server" DataSourceID="srcSponsorNames" DataTextField="Name"
DataValueField="Name" SelectedValue='<%# Bind("Sponsor") %>'>
</asp;DropDownList>


Any help would be greatly appreciated.

thanks
Deeee

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.