Duplicate dropdownlist

  • Thread starter Thread starter ree32
  • Start date Start date
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

Back
Top