Hi I'm trying to set the visible property on all panels on my page.
Is this possible using a foreach loop?
I have tried using the following but it doesn't work:
Does anyone know where I am going wrong?
Cheers, JAmes
Is this possible using a foreach loop?
I have tried using the following but it doesn't work:
Code:
foreach (Panel p in Page.Controls)
{
do something
}
Does anyone know where I am going wrong?
Cheers, JAmes