First are you posting to another page? or are you posting to the same page?
Also you probably want to set the viewstate to true if on the same page.
How are you creating the names? are they like you said ck_01, ck_02, etc...
Instead of just creating to checkboxes on the page I would use a container for them that only houses the dynamic checkboxes, that way you don't need to filter if they are the ones you dymanically created...
Either way you can do it with a loop.
With out using a container:
Code:
For Each con As Control In Page.Controls
If TypeOf con Is CheckBox Then
If CType(con, CheckBox).ID.StartsWith("ck_") Then
If CType(con, CheckBox).Checked = True Then
'Do what you need to do with the value - CType(con, CheckBox).Value
End If
End If
End If
Next
The above code could be simplified but I did that so you could easily follow what was being done.
Now if you add a panel or something to your page and just create your checkboxes there then you don't need to loop all the controls of the page or validate that they are the dynamic ones because you already know they are...
With Container:
Code:
For Each con As Control In CheckBoxPanel.Controls
If TypeOf con Is CheckBox Then
If CType(con, CheckBox).Checked = True Then
'Do what you need to do with the value - CType(con, CheckBox).Value
End If
End If
Next
Hopefully I understand you correctly and this at least points you in the correct direction....