Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index out of range error
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Index out of range error
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01194314
Message ID:
01194314
Views:
60
Kevin,

I'm working on the screen that allows the user to select a store number and invoice number to create a dataset that is displayed in a data grid. You helped me a couple of months ago to get that going. I decide to use a tabbed page so I cut all my objects from the form, added a tabbed page and then pasted the objects back on the page and added some labels and text boxes and labels on the 2nd page. Now, when I select the invoice number, I get the error: "Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"

If I remove the text boxes from the tab, the form runs correctly. I don't have any code on the 2nd page except for a refresh when the 2nd tab is clicked. Do I need to do something else to get the text boxes to pick up the value for the currently selected item from the data set?

Thanks.

Linda
Linda Harmes
HiBit Technologies, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform