Hello,
I am attempting to iterate through a ControlCollection in the CreatedUser event of my CreateUserWizardStep. I have a ContentTemplate that contains a table full of checkboxes that I am using to gather a user's availability during the week. For the sake of brevity I will paste my code on pastebin.
Here is a link to the .aspx page. Here is the CreatedUser event.
This loop:
foreach (Control c in CreateUserWizardStep1.ContentTemplateContainer.Controls)
{
if (c.GetType() == typeof(CheckBox))
{
}
}
Gives me a WizardDefaultInnerTable instead of...well something easier to work with.
How do I go about getting at the checkboxes inside that second table? What I want to do is find the checked property and with that, build strings that I can put into my database. Any guidance is appreciated.
Thanks!