<script type="text/javascript"> /* star */
function lst_left_star_DblClicked() {
var left_lst = document.getElementById("<%=lst_leftstar.ClientID%>");
var right_lst = document.getElementById("<%=lst_rightstar.ClientID%>");
for (var i = 0; i < left_lst.length; i++) {
if (left_lst.options[i].selected == true) {
right_lst.options[right_lst.length] =
new Option(left_lst.options[i].text,
left_lst.options[i].value);
left_lst.options[i] = null;
i = i - 1;
}
}
return;
}
</script>
<script type="text/javascript">
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;
}
</script>
<asp:ListBox ID="lst_leftstar" onDblClick="lst_left_star_DblClicked();" runat="server"
Height="100px" Width="180px"></asp:ListBox>
<asp:ListBox ID="lst_rightstar" onDblClick="lst_right_star_DblClicked();" runat="server"
Height="100px" Width="180px"></asp:ListBox>
.............
please tell me how can i insert this listbox data in database..