From your page you can do
var checkboxes = (CheckBoxList)userControl1.FindControl("checkBoxList1");
But a better solution in my mind would be to expose the checked items through a property or method.
In user control
public string[] CheckedItems {
get {
List<string> checkedItems = new List<string>();
foreach (ListItem item in checkbox1.Items)
checkedItems.Add(item.Value);
return checkedItems.ToArray();
}
}
Then in the page
var checkedItems = userControl1.CheckedItems;
You could also just return checkbox1.Items
in the property, but that isn't good encapsulation.