Additional Reference Needed?

K

Ken Saganowski

VB.Net version 2003

I'm attempting to manually populate a comboBox (dropDownList) but am unable
using a syntax I used to use in 2002:

dim dr as sqlclient.sqldatareader = cmd.executeReader
while dr.read
ddl.items.add(new listItem(dr("text"), dr("value")))
end while

Is there an additional project reference needed in order to instantiate a
new ListItem object? I cant get it to come up in the class box.

any help is greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top