Hi All,
I need to move items between List Boxes.
Currently I have two listboxes on the form. The left listbox displays
the data from the database.
I am able to retrieve the selected value using
XDocument.DOM.selectSingleNode("//my:List1").text;
Now I want to push this value in the second list box by clicking on one
button & remove any selected value from second list box by clicking on
second button.
I was trying something like this to add selected item in second list
box:
XDocument.DOM.selectSingleNode("//my:List2").text) = XDocument.DOM.
selectSingleNode("//my:List1").text);
But this does not work.
Please help me to resolve this problem
Thanks & Regards,
Vinesh
S.Y.M. Wong-A-Ton - 19 Mar 2006 19:35 GMT
You need to use appendChild() or removeChild() to add or remove items from
the lists.
---
S.Y.M. Wong-A-Ton
> Hi All,
>
[quoted text clipped - 20 lines]
> Thanks & Regards,
> Vinesh
SDecou - 04 Apr 2006 21:21 GMT
Could you post some sample code on how to do this. I have 2 listboxes named
List1 and List2. I've searched in the discussion group and cannot find any
samples using listboxes.
> You need to use appendChild() or removeChild() to add or remove items from
> the lists.
[quoted text clipped - 25 lines]
> > Thanks & Regards,
> > Vinesh