My usercontrol is going to have several panel controls on it. Within each panel there will be a checkboxlist and possibly a textbox. Depending on the value passed to the usercontrol a particular panel will be visible and the other panels won't be visible.

So, without writing a massive amount of IF statements how can I capture the selected items in the checkboxlist of the visible panel?