You might want to check out Denis Bauer's free DynamicControlsPlaceholder
control that seems to do what you need:
It "behaves like a placeholder but additionally handles recreating dynamic
controls on subsequent requests."
http://www.denisbauer.com/ASPNETCont...aceholder.aspx
"Mike" <no****@nospam.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,
I am building a web form with dynamic controls. Some need to be visible and
some not. When clicking on a button, all controls become visible. I have
used code behind to do that, but when I set the value of a control (ie.
label) and then click the button to show all controls, these value are lost.
Should I use ViewState and save the state of each single control? Or is that
a better method? Any resouce or sample would be highly appreciated.
Thanks
Mike