Define control visibility

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

What is the difference of adding a control to a page and setting its
visible property to false or not adding it?

Is it not the same in terms of the generated layout?

I suppose the difference is that the added control is added to the
viewstate even if invisible. Is this right?

Thanks,

Miguel
 
Hi,

non-visible control exists fully at server-side, it just doesn't participate
in rendering. Not adding a control means that control doesn't exist at all
as it doesn't participate control lifecycle etc etc
 
Back
Top