Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding objects to list box in .NET
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Adding objects to list box in .NET
Divers
Thread ID:
00846761
Message ID:
00846761
Vues:
58
I am working on an app in .NET (VB.NET). I want to display a list box with text and the value of the selected item to be from my database field. I am aware that you add objects to the list box as items. Something like this is what I have in mine....

dim obj as new clsListItem
obj.display = "text to display"
obj.itemValue = 12345
lstProducts.items.add(obj)

How do I have my text display properly? When I get the selected item, will it return the object?

Thanks in advance!
Tim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform