Fernando Campos
|
| Posted: 01/21/2003, 5:55 AM |
|
I have two listboxes in my page, one of them with the States of my Country. This listbox has an onChange JavaScript event that reloads the page and pass the stateID as parameter to the another listbox to select it’s cities.
I have two problems: The state’s listbox doesn’t keep the state shoosed after the onChange event.
The other problem occurs when I’m updating one registry: The registry’s link pass the stateID as parameter to select the correct state’s cities. The code returns the correct state, but it doesn’t return the city, keeping “Select Value” at the listbox.
I’m using ASP and SQL Server 2000.
Can somebody help me?
Thank you.
|
|
|
 |
kipdole
|
| Posted: 01/21/2003, 6:13 PM |
|
I have been trying to figure this out myself as well.
I could get Jaro's List boxes to work for a search form but not a record form.
It would be great to have this working!!! I would love a working sample in asp.
Thanks,
Kip
|
|
|
 |
AARL
|
| Posted: 01/22/2003, 4:17 AM |
|
You can do this by using the search form you already have working and a record form, pass the value[s] to hidden fields in the record form.....use one search form for each level of list box....
OR
On one form [RECORD], you need to set the values store the values befor the OnChange....there is a great example here:
http://msdn.microsoft.com/library/default.asp?url=/libr...ml/calendar.asp
|
|
|
 |
|