Hello

I want to copy selected items in a listbox to another one by clicking a button.

When the items are selected and the button click event fires, the items lose
their selection state...

I use this code:
------------------
Private Sub btnLinks_Command(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs)
Handles btnLinks.Command
Dim i As Integer

For i = 0 To lbTable.Items.Count - 1
If lbTable.Items(i).Selected Then
lbLinks.Items.Add(lbTable.Items(i))
End If
Next
End Sub
------------------

lbTable and lbLinks are listboxes ... when i trace the debugger trough the
for loop, every item has it's selected prop "False" eventhough i selected
multiple items on the page !

I've probably took a wrong turn somewhere along the way to .NET :-)

Thanks
bluezz