what happened to the controls of my Panel control?

what happened to the controls of my Panel control?

am 29.05.2007 07:10:30 von StephenRichter

a simple web page that adds controls to a Panel control at run time.
Problem is, on PostBack, all the controls I added to the Panel are
missing! ViewState is enabled on the panel. What happened to the
child controls of the Panel?

thanks,
















Re: what happened to the controls of my Panel control?

am 29.05.2007 07:43:35 von StephenRichter

On May 29, 1:10 am, Steve Richter wrote:
> a simple web page that adds controls to a Panel control at run time.
> Problem is, on PostBack, all the controls I added to the Panel are
> missing! ViewState is enabled on the panel. What happened to the
> child controls of the Panel?

never mind, I got it. I had forgotten that when I add the controls
back on each Page_Init ASP.NET magically applies the posted values of
those controls. Kind of confusing. ;)