Geny
|
| Posted: 04/20/2005, 7:19 AM |
|
Hi,
i have a listbox filled with 'listOfValues' and depending of the item choose in it, i want the corresponding form to that choice to become visible.
My listbox have 8 values and i have 8 record form not visible on my page. I have some text boxes to fill over this listbox so i don't want to lose the data put in them when i change value with my listbox...
Do you have any idea where do i need to put some code? On the on change event of the listbox?
Thanks ;)
|
|
|
 |
Nicole
Posts: 586
|
| Posted: 04/21/2005, 2:19 AM |
|
Geny,
You can reload a page after selection is made from a listbox. Then in grid before show event check passed listbox value and show/hide grid depending on it.
In order to preserve previously selected/entered values when page is reloading you need to pass these values via url as it is done for the listbox value to preserve parameters, e.g.:
window.location.href = "Page_name.asp?listbox1=" + this.value + "&user_name=" + document.form_name.user_name_field.value;
_________________
Regards,
Nicole |
 |
 |
|