I want to collect automaticaly all informations (i.e. control values) in a asp:wizard with multiple steps. How to do it?
I found an interesting link, but it seams not to work properly: just a few infos about the current step: http://msdn.microsoft.com/en-us/library/yt340bh4(v=vs.80).aspx
foreach (Control c in Page.Controls)
{
foreach (Control childc in c.Controls)
{
if (childc is Label)
{
lblTitre0.Text += ((Label)childc).Text + ",";
}
}
}
No data shown in lblTitre0 (asp:label)
Try this