Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DropDownList Out of Range Error
Message
 
 
To
26/06/2008 08:42:08
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01326894
Message ID:
01326901
Views:
12
How are you binding the data to the DropDownList?

>I have a detailsView in my webForm. Inside detailView have a dropdownlist.
>
>The dropdownlist will be populated from a table eg, supplier table which have fields id,supName
>
>The data source the detailsView is pulling data from another table which store supplier id.
>
>If 2nd table store invalid supplier Id (eg. supplier deleted form supplier table or whatever), The error will appear :
>
>System.ArgumentOutOfRangeException: 'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
>
>
>Any suggestions to solve the problem would be appreciated.
>
>TIA.
>
>Best Regards,
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform