Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding objects to list box in .NET
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Adding objects to list box in .NET
Miscellaneous
Thread ID:
00846761
Message ID:
00846761
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform