Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigating through images as child records
Message
From
03/01/2008 17:10:23
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01277351
Message ID:
01279364
Views:
21
>Tim,
>
>>I have a web form that has a parent business object and a child. The child table only contains information on images like width, height, and imageUrl. On the form I have only one image control with navigation buttons for the images. I have the first image showing when the page loads but need to navigate through the images manually.
>>
>>In the business object I have a method that retrieves a BindingList of the child records based on the parent primary key. The question is how can I navigate through the BindingList to obtain the entity information so I can manually set up the image control when navigated? I cannot find any navigation methods for the BindingList.
>
>.NET collections don't have navigation methods. You could however keep track of the current index and use that to retreve a value out of the collection like this:
>
>
EntityList[index];
>
>Best Regards,

Thanks Kevin, I suspect I will just drop the collection and retrieve a dataset.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform