In Vb.net,
I do it in the foll. way--

Dim value as string
Button_Click
For each value in combobox1.items
combobox2.items.add(value)
Next

But it is not working in ASP.net.
Plz de reply back.

I am not entirely sure if this will work as I am not experienced in VB at all (or combo boxes for that matter!):

Try changing this line:

combobox2.items.add(value)

To this:

comboBox1.Items.Add(new Item(value));

This idea came as a result of some searches on google I made. Here is the original post (it might help if my fix doesn't work)

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=932240&SiteID=1

I hope this helps, let us know how it goes.

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.