Iterate through Wizard control with textboxes

K

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top