I’m having trouble figuring this out. If I have a checkboxlist inside a usercontrol, how do I loop through (or check, really) what boxes are checked in the list?
As I said in the comment below, I’d like to expose the checked items through a property in the control itself.
From your page you can do
But a better solution in my mind would be to expose the checked items through a property or method.
In user control
Then in the page
You could also just return
checkbox1.Itemsin the property, but that isn’t good encapsulation.