G
Guest
I going through all the checkboxes in my datalist to get the value (checked
or not checked) and it keeps returning false even if its checked.
Dim I As Long
For I = 0 To datalist.Items.Count - 1
Dim CurrentCheckBox As CheckBox
CurrentCheckBox = datalist.Items(I).FindControl("checkbox")
Response.Write("Item(" & I & "): " &
CurrentCheckBox.Checked.ToString() & "<br>")
'Response.Redirect("webform1.aspx?I=" & I & "&value=" &
CurrentCheckBox.Checked.ToString() & "|")
Next
or not checked) and it keeps returning false even if its checked.
Dim I As Long
For I = 0 To datalist.Items.Count - 1
Dim CurrentCheckBox As CheckBox
CurrentCheckBox = datalist.Items(I).FindControl("checkbox")
Response.Write("Item(" & I & "): " &
CurrentCheckBox.Checked.ToString() & "<br>")
'Response.Redirect("webform1.aspx?I=" & I & "&value=" &
CurrentCheckBox.Checked.ToString() & "|")
Next