Duplicate dropdownlist

R

ree32

I am a bit confused as to how to duplicate the contents of a
dropdownlist.

I am reading of the values from a Sqldatareader to fill the first
dropdownlist when the page is loaded. But because its a Sqldatareader
i can't do this -
ddl2.DataSource = dr

I don't want to use an SqldataAdapter.

So I am trying do to ddl2 = ddl1 but as I suspected its not adding
any items ddl2.

So is there a way to achieve this?
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top