470,619 Members | 1,463 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

Populating three list boxes from the database

Can anybody help?
I need to have three list boxes automatically populating each other, (ie
when region is selected from the first listbox, it will populate
automatically the second one which is the TOWNS and when the town is
selected is should populate the third one AREA) all data is in the database
in one table.
Any idea???
Many thanks in adavance.
Lamine
Jul 19 '05 #1
2 2438
-----Original Message-----
Can anybody help?
I need to have three list boxes automatically populating each other, (iewhen region is selected from the first listbox, it will populateautomatically the second one which is the TOWNS and when the town isselected is should populate the third one AREA) all data is in the databasein one table.
Any idea???
Many thanks in adavance.
Lamine
.

Lamine.
Are you using ASP or ASPX?
With ASPX you set the autpostback = true and use the
event selectedindexchanged of the dropdown or list.
With old ASP, you have to identify wich dropdown list was
changed. Make a javascript the gets the dropdown value
and wich dropdown was selected
(http://www.site.com/code=90&drop=a). Then you can build
the next one and so far.
Jul 19 '05 #2
Hi Ronaldo,
Many thanks for you reply,
I am using classic ASP, I tried your idea but without success, could you
please me with some code or example if you have one.
I have manged only two listboxes but found very hard with three listboxes.
Many thanks in advance.
Lamine

"Ronaldo" <ro*****@rsmsolucoes.com.br> wrote in message
news:13****************************@phx.gbl...
-----Original Message-----
Can anybody help?
I need to have three list boxes automatically populating

each other, (ie
when region is selected from the first listbox, it will

populate
automatically the second one which is the TOWNS and when

the town is
selected is should populate the third one AREA) all data

is in the database
in one table.
Any idea???
Many thanks in adavance.
Lamine
.

Lamine.
Are you using ASP or ASPX?
With ASPX you set the autpostback = true and use the
event selectedindexchanged of the dropdown or list.
With old ASP, you have to identify wich dropdown list was
changed. Make a javascript the gets the dropdown value
and wich dropdown was selected
(http://www.site.com/code=90&drop=a). Then you can build
the next one and so far.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Derk | last post: by
1 post views Thread by Stephene | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.