i have two list boxes in a page.when a selection is made in the first list the options in the second list should be refreshed dynamically accordingly(for a single option in first list there are multiple options in second one)
Using the onChange event of the listboxes make the page go to itself but add URL parameters to the string. When the page reloads, check the values of the querystrings and create the recordsets accordingly. Derren
[The only person in the world to like Word]
Hey it might be irritaing to the user to go to server every time he cnages selection needs to wait for some time to get the values... You might even loose your customer.
What i suggest is if it is possible bring all the values to the page once it is loaded and refresh the second listbox using client side script every time user changes his options. By doing this even though first time page might be little slow but after that user will be happy to use it.
I agree with SrinuReddy, Refreshing the page is only needed if you have data to update from the db etc..as far as objects go try to put them all to the page at first and use the client side scripting like he said..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.