views:

9

answers:

0

Hi,

I have to access controls in LayoutTemplate in LoginControl. So in PageLoad() I do something like this:

foreach(Control control in loginControl.Controls){  
  (control As Label).Text =... blah nlah ; //do something with control, 
}  

In LayoutTemplate I have some labels, etc, but I can "see" them after PostBack and I don't have anything like

if (IsPostBack)...

So, does anyone knows what's the problem here?

Thanks,

D