Vengeance
02-04-2004, 08:40 PM
Hey Everyone,
While not being too much of a newbie when it comes to programming in general I am however a total newbie when it's in regards to Javascript and asp.net.
What I am trying to do is to have a main form with an ASP:Listbox and Input button which when the user clicks the are then presented with a child window that has two more ASP:Listboxes and some more Input buttons. They are the allowed to move items around between the two listboxes on the child form until they are happy. At which point they then click the done button and their selection is passed back to the main form. Visually everything seems to work fine. The form comes up, items move around as expected, and are then returned to the main form listbox when done. However, when the user clicks an ASP:Button on the main form to save their information the contents of the listbox disappear.
I had a hard time trying to get each form able to recognize the other forms listbox but finally managed to get it this far. Most if not all of the inner workings are being done via javascript which I can post some snippets if anyone feels that might help. I was hoping that someone might be able to tell me if what I'm trying to do is even possible or not and if it is then what would be the best way to approach this so as to to if I'm going in the totally wrong direction.
TIA,
Brian
While not being too much of a newbie when it comes to programming in general I am however a total newbie when it's in regards to Javascript and asp.net.
What I am trying to do is to have a main form with an ASP:Listbox and Input button which when the user clicks the are then presented with a child window that has two more ASP:Listboxes and some more Input buttons. They are the allowed to move items around between the two listboxes on the child form until they are happy. At which point they then click the done button and their selection is passed back to the main form. Visually everything seems to work fine. The form comes up, items move around as expected, and are then returned to the main form listbox when done. However, when the user clicks an ASP:Button on the main form to save their information the contents of the listbox disappear.
I had a hard time trying to get each form able to recognize the other forms listbox but finally managed to get it this far. Most if not all of the inner workings are being done via javascript which I can post some snippets if anyone feels that might help. I was hoping that someone might be able to tell me if what I'm trying to do is even possible or not and if it is then what would be the best way to approach this so as to to if I'm going in the totally wrong direction.
TIA,
Brian