Does anyone know how to check if a selection has been made from a list Box?
Printable View
Does anyone know how to check if a selection has been made from a list Box?
I have a listbox named group:
Group.Items(Group.SelectedIndex).Value
As for handling the event, you need to have an event handler similar to:
Public Sub GroupSelected(ByVal sender As Object, ByVal e As EventArgs) Handles Group.SelectedIndexChanged
and the tag looks like:
<asp:DropDownList id="Group" runat="server" OnSelectedIndexChanged="GroupSelected" AutoPostBack="True"></asp:DropDownList>