Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DropDownList Out of Range Error
Message
From
26/06/2008 08:42:08
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
DropDownList Out of Range Error
Miscellaneous
Thread ID:
01326894
Message ID:
01326894
Views:
72
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,
Next
Reply
Map
View

Click here to load this message in the networking platform