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
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