shifting items in b/w list boxes
-
hi, i have 2 list boxes on my aspx page. i need to have a functionality that, whenever a user double clicks an item on any of the list boxes, it shifts to the other one. i am using a javascript for this purpose as there is no double click event provided. the script is working and the items do shift. but when a server web control such as a button is clicked, all shiftings made by double clicking revert. please help me. do i need to use viewstate? if i do, can anyone tell me how? if there is another way please do tell me! thanx in advance ☺«««DTA»»»☺
-
hi, i have 2 list boxes on my aspx page. i need to have a functionality that, whenever a user double clicks an item on any of the list boxes, it shifts to the other one. i am using a javascript for this purpose as there is no double click event provided. the script is working and the items do shift. but when a server web control such as a button is clicked, all shiftings made by double clicking revert. please help me. do i need to use viewstate? if i do, can anyone tell me how? if there is another way please do tell me! thanx in advance ☺«««DTA»»»☺
Are you doing your loading of the items inside a !IsPostback block, so that you don't reload them in their original position on postback, thus losing the positions they had coming in from the client ? Christian Graus - Microsoft MVP - C++
-
hi, i have 2 list boxes on my aspx page. i need to have a functionality that, whenever a user double clicks an item on any of the list boxes, it shifts to the other one. i am using a javascript for this purpose as there is no double click event provided. the script is working and the items do shift. but when a server web control such as a button is clicked, all shiftings made by double clicking revert. please help me. do i need to use viewstate? if i do, can anyone tell me how? if there is another way please do tell me! thanx in advance ☺«««DTA»»»☺
Have a look at this http://www.metabuilders.com/Tools/DualList.aspx[^] Maybe this is what you need. cheers Phil
-
Are you doing your loading of the items inside a !IsPostback block, so that you don't reload them in their original position on postback, thus losing the positions they had coming in from the client ? Christian Graus - Microsoft MVP - C++