easy way to dynamically load dropdown boxes

G

Guest

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

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

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,737
Latest member
Georgeengab

Latest Threads

Top