i havea dropdwonlsit (loads on the page_load event) and a unbound CheckBoxList is based on the selection from DropDownlist, the checkboxList is display CheckBox (might be one or two or three or any numbers)..... i just want to know after the page is loaded on the browser and user click on the checkbox's, i need a way to know what checkboxs users have selected... what is the best way of doing that? so far i have come up with this...
<asp:CheckBoxList AutoPostBack="true" ID="chkbox" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" RepeatLayout="Table">
</asp:CheckBoxList>
Private Sub chk_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chk.SelectedIndexChanged
Dim roleCollections As New RoleCollections()
Dim roleNames As New RoleNames()
Dim list As New List(Of String)()
For Each li As ListItem In chk.Items
'If li.Selected Then
'list.Add(li.Value)
'End If
Next