I have a problem involving 2 listboxes on an asp page.

When the user chooses an option from one listbox, the other listbox is populated with values from a database.

Both listboxes are set to remember the selected list entry when the form is resubmitted.

This causes a problem if the user changes the selection in the first listbox, when the form is submit, it will still try to keep the entry in the second listbox selected, even though there are totally new values in the second listbox.

I need to be able to clear the selection in the second listbox when the value in the first list box changes. What is the simplest way to do this?

I tried to put the two listboxes on seperate forms, but the problem with that is that the first listbox would then need to submit both forms on its "onchange" event trigger, which I am not sure is possible?

I hope my question makes sense, if you need me to clarify anything just let me know.