Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DropDownList Out of Range Error
Message
 
 
À
26/06/2008 08:42:08
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01326894
Message ID:
01326901
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform