If the problem is getting the ID from the Checkbox within a Repeater then this article might help, Select All Checkboxes in a GridView. It shows how to generate a Client Side select all feature on an ASP.Net Gridview.
The issue you are dealing with is not an uncommon one. You want to access a control that is in a control that repeats layout (GridView, Repeater, DataList and the like) using JavaScript.
The thing to remember is that you can access the generated ClientId during the DataBound events (RowDataBound, ItemDataBound) which can then be used on the client side.
Then on the return trip as this is a standard control you should be able to find it. However if you are using a Repeater then Updating data might require a bit more work as the control itself is more designed for read-only type displays.
If the problem is mapping each control to a predefined StateCode then in the ItemDataBound or RowDataBound(if you change from Repeater to Something else) events you could wire a call to a JavaScript method with 1 or 2 parameters depending on the need. Either the currentCheckBoxId and the appropriate StateCode separately or already concatenated and use that as a lookup type feature.
Sorry for the two answers, but the question seemed a little vague as to what you were actually trying to do, maybe I just need another cup of coffee. Hope one of these ideas help.