By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,687 Members | 2,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,687 IT Pros & Developers. It's quick & easy.

easy way to dynamically load dropdown boxes

P: n/a
im dynamically loading dropdown boxes on page.load

like this :
cbo1.Items.Add("")
cbo1.Items.Add("OT")
cbo1.Items.Add("ST")
cbo1.Items.Add("Ho")
cbo1.Items.Add("FMLSK")
cbo1.Items.Add("FMLOI")
cbo1.Items.Add("FMLPE")
cbo1.Items.Add("UFMLSK")
cbo1.Items.Add("UFMLOI")
cbo1.Items.Add("UFMLPE")
works fine. my only question is. currently i have 32 of these dropdown controls,cbo1 & cbo2 etc.(32 total)
eventually there'll be approx 5 or 10 times that many and they'll need to be populated accordingly.
is there an easier way to do this?
thanks
rik

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
where is the list of items coming from?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
wrote in message news:%2***************@TK2MSFTNGP14.phx.gbl...
im dynamically loading dropdown boxes on page.load

like this :
cbo1.Items.Add("")
cbo1.Items.Add("OT")
cbo1.Items.Add("ST")
cbo1.Items.Add("Ho")
cbo1.Items.Add("FMLSK")
cbo1.Items.Add("FMLOI")
cbo1.Items.Add("FMLPE")
cbo1.Items.Add("UFMLSK")
cbo1.Items.Add("UFMLOI")
cbo1.Items.Add("UFMLPE")
works fine. my only question is. currently i have 32 of these dropdown
controls,cbo1 & cbo2 etc.(32 total)
eventually there'll be approx 5 or 10 times that many and they'll need to
be populated accordingly.
is there an easier way to do this?
thanks
rik

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.