i used javascript(on double click) for moving items from first listbox to second listbox..
and want to second listbox items store in database
but i am fail to do this..
hard work and hard search i ask you here.
so please help me...i need the solution for my site..
i have two tables
1) star_master
and
2) profile_star
two listboxes
1) lst_leftstar
2) lst_rightstar
lst_leftstar is display(load) from star_aster table
and lst_rightstar will be blank..
select(doubleclcik on) items for move items lst_leftstar to lst_rightstar
and lst_rightstar items will be store in database....
i tried too much..but my coding is failed here...
coz when i click on submit button "lst_rightstar" show me 0 items in loop.
my javascript coding is :=
function lst_right_star_DblClicked() {
var left_lst = document.getElementById("<%=lst_leftstar.ClientID%>");
var right_lst = document.getElementById("<%=lst_rightstar.ClientID%>");
for (var i = 0; i < right_lst.length; i++) {
if (right_lst.options[i].selected == true) {
left_lst.options[left_lst.length] = new Option(right_lst.options[i].text, right_lst.options[i].value);
right_lst.options[i] = null;
i = i - 1;
}
}
return;
}
Height="100px" Width="180px">
Height="100px" Width="180px">
.............
please tell me how can i stored my listbox items in database.
i tried but not success...
i tried but not success...
please tell me how can i insert this listbox data in database..
please give me simple coding
Replies
Know the answer? Post it — somebody with the same question will find it here.