S
Scott Lemen
Hi,
My Listbox control is a webcontrol and its AutoPostBack property is set
to True. When I left-click on an item the event code here executes:
Private Sub ListBox2_SelectedIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles ListBox2.SelectedIndexChanged
If sender.selectedIndex > -1 Then
AddUserToDL(sender.selecteditem)
End If
End Sub
The problem is the sender.selectedIndex property is never greater than -1
and the sender.SelectedItem is set to Nothing. This happens whether the
control's SelectedMode is set to Single or Multiple and it does not matter
which of the 100 plus items, or multiple items, is selected. Does anyone
know what could cause this?
I am running Visual Studio 2003 Enterprise on a Windows 2000 Pro SP4
computer. The web server is IIS, which is running on my own workstation.
Thank you for your assistance.
Scott Lemen
My Listbox control is a webcontrol and its AutoPostBack property is set
to True. When I left-click on an item the event code here executes:
Private Sub ListBox2_SelectedIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles ListBox2.SelectedIndexChanged
If sender.selectedIndex > -1 Then
AddUserToDL(sender.selecteditem)
End If
End Sub
The problem is the sender.selectedIndex property is never greater than -1
and the sender.SelectedItem is set to Nothing. This happens whether the
control's SelectedMode is set to Single or Multiple and it does not matter
which of the 100 plus items, or multiple items, is selected. Does anyone
know what could cause this?
I am running Visual Studio 2003 Enterprise on a Windows 2000 Pro SP4
computer. The web server is IIS, which is running on my own workstation.
Thank you for your assistance.
Scott Lemen