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?
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?