How can I get the values of a multiple check box selection and store it in variable. I try this and does not work can someone help me. thanks
Code:
<form id="form1" runat="server">
<div style="text-align: left">
Select Review Participants<br />
<br />
<asp:CheckBoxList ID="cblReview" runat="server" Height="80px" Width="352px">
</asp:CheckBoxList>
<asp:Button ID="btnReviewer" runat="server" Text="Button" Width="144px" /></div>
</form>
Protected Sub btnReviewer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnReviewer.Click
Dim I As Integer
Dim valStr As String = ""
For I = 0 To cblReview.Items.Count - 1
Dim chkSelect As CheckBox = CType(FindControl("cblReview"), CheckBox)
If chkSelect.checked> 0 Then
valStr = valStr & ","
End If
Next
End Sub