You can add a jquery click handler for the button.
<pre lang="Javascript">
$('#button').click(function(){
$('[^=DynamicCheckBox]').each(function(){
if($(this).is(':checked'){
//add the attribute of checkbox(you want -- can be the row idx) to a hidden field with a delimiter
}
});
});
</pre>
Then in the code behind in button click event split the hidden fields value
and get the values you want