Groups | Blog | Home
all groups > inetserver asp db > october 2004 >

inetserver asp db : Automatic update of combo2 triggered by on change event of combo1 on web page Anyone got a simple example?


richard NO[at]SPAM dingydangy.it
10/29/2004 9:26:16 AM
Hi!
I need to do something that seemed simple in ASP : an automatic update of
combo2 triggered by on change event of combo1 on same form on a web page.
NOT that easy I begin to think.
Anyone got a simple example?
Thanks
Maarten
10/29/2004 9:36:16 AM
www.tenerife-dolphins-whales.com/booking.asp

Check hotel: pick a region and see what happens in second combo.
Is this what you want? I search and i had 2 options, reload the asp page or
write JScript when loading the page. Let me know if you wish the source op
the page above.

Maarten

richardholland NO[at]SPAM virgilio.it
10/29/2004 10:52:30 AM
Thanks for the reply. Looked at the site, kewl. But I was looking for a
wayto fill the 2nd combo from a sql string, rather than hard coding the
contents.

Thanks anyway
Buenas dias!
Maarten
10/29/2004 12:02:45 PM
ASP is server side and client side. So if you have to fill the second
listbox in classic ASP, you need to reload te page. I believe in ASP.NET
there are other possiblities. I'm not sur.

Maarten
10/29/2004 12:04:21 PM
PS: hard coding. The code in the website is based on a query and then
written the JS by the asp page when loading.

AddThis Social Bookmark Button