I am attempting to populate a listbox with data from a table and don't have the methods .dataValueField or .dataTextField or .DataBind in my selection menu. Can anybody help me understand why? ex. lstServices.DataValueField = "item#"

To populate a listbox use something like this:

lstServices.items.add("xxx").

That will add the item "xxx" to it.

I mean, you have to connect to the table, and get the data from the field, and then add it to the listbox.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.