Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Navigating through images as child records
Message
De
03/01/2008 17:10:23
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01277351
Message ID:
01279364
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform