Home All Groups Group Topic Archive Search About

Iterate through Wizard control with textboxes

Author
23 Aug 2006 9:52 PM
Kent petersson
Hi,
I got an aspx page with a wizard control which is based on a masterpage.
I place a wizard control with textboxes in each step. The wizard is placed
in the contentplaceholder.

Does anyone how I can iterate through the textboxes and get their values?
Tried the stuff below for  both "wizard" and "pag"e and different levels:
foreach (Control c in Wizard1.Controls)
        {

            foreach (Control childc in c.Controls)
            {

                foreach (Control childc1 in childc.Controls)
                {

                    if (childc1 is TextBox)


                        HolderSelectedValues= ((TextBox)childc1).Text;
                }
            }
        }

Thanks,
BR/Kent Petersson