Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dual drop down same datareader Opinions..

Status
Not open for further replies.

Zarcom

Programmer
May 7, 2002
1,275
CA
Got an opinion question here and I would like to hear your opinions on it.

I have a datareader returning data based on a stored proc. Thing is that I can use the information in that reader to fill two drop down boxes. You cannot do this with one reader since when you do a databind it closes the reader.

So I have thought of two options.
1. I could go grab the data twice from the database and bind the drop downs separately.
2. I could throw the data into a collection and bind the two drop downs from there.

your opinions on my two options or new ideas are appreciated thanks.

That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
I would go for a collection as fetching again from the database doesn't go to well with performance. Maybe you can use a dataset, which can be assigned as datasource to both drop downs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top