I have two lists (listbox 1 and listbox2). I used the following javscript code to move a value from one list to another.
<script language="javascript" type="text/javascript"> function fnMoveItems(lstbxFrom,lstbxTo) { var varFromBox = document.all(lstbxFrom); var varToBox = document.all(lstbxTo); if ((varFromBox != null) && (varToBox != null)) { if(varFromBox.length < 1) { alert('There are no items in the source ListBox'); return false; } if(varFromBox.options.selectedIndex == -1) </script>
This code moves the value from one list to another, but actually, when I try to read the values of the second list, the one for which the values are copied, I can not read these values. when I check this, it shows that ListBox2.Items.Count is 0
source share