K
Kay
Hello,
I have two list boxes on my form, one initially displays blank, and through
javascript it is possible to move items from one box to another, this works
fine, I followed an article titled "How to move items between Lists with
Javascript" http://www.devx.com/GetHelpOn/10MinuteSolution/16372. My problem
is that I also have a dropdown list on the page with autopost back = true,
and a procedure to handle the text changed event of the dropdown list; my
problem is as follows: when the user selects an option in the dropdown list
the form is posted back to the server and certain other processing happens,
then when the form redisplays, the items that had been moved between the
list boxes have disappeared. How do I maintain the listboxes on a redisplay?
I need to do an autopostback on the dropdown list. I also have a save button
on the form and I know when the user clicks this, I can retrieve the value
in the listbox by doing a Request.Form("listboxID") on the server, however
the dropdownlist text changed event will occur before the save button is
clicked.
Any idea how I might preserve the users selection in the listboxes when I
present the screen back to them after the drop down list text changed event?
Any help appreciated.
Thanks,
Kay.
I have two list boxes on my form, one initially displays blank, and through
javascript it is possible to move items from one box to another, this works
fine, I followed an article titled "How to move items between Lists with
Javascript" http://www.devx.com/GetHelpOn/10MinuteSolution/16372. My problem
is that I also have a dropdown list on the page with autopost back = true,
and a procedure to handle the text changed event of the dropdown list; my
problem is as follows: when the user selects an option in the dropdown list
the form is posted back to the server and certain other processing happens,
then when the form redisplays, the items that had been moved between the
list boxes have disappeared. How do I maintain the listboxes on a redisplay?
I need to do an autopostback on the dropdown list. I also have a save button
on the form and I know when the user clicks this, I can retrieve the value
in the listbox by doing a Request.Form("listboxID") on the server, however
the dropdownlist text changed event will occur before the save button is
clicked.
Any idea how I might preserve the users selection in the listboxes when I
present the screen back to them after the drop down list text changed event?
Any help appreciated.
Thanks,
Kay.