J
JT-ARL
I have a pretty tricky problem. I have a dynamically built page. I use
Page.ParseControls to parse the "entire page" (ASPX file contains only a Page
tag). ParseControls is pretty resource intensive so I would like to cache
the Page.Controls collection and reuse it on postback instead of issuing
page.parsecontrols on the source again. When I cache the Controls collection
and add the controls back to the page, the Page.Form property is null (I
don't exactly know why but there does not appear to be a way to initialize
it). I have been unable to find a solutions to this and any approaches
would be helpful. There is a form control in the controls collection but
again it is not registered with the page.
Thanks,
Justin
Page.ParseControls to parse the "entire page" (ASPX file contains only a Page
tag). ParseControls is pretty resource intensive so I would like to cache
the Page.Controls collection and reuse it on postback instead of issuing
page.parsecontrols on the source again. When I cache the Controls collection
and add the controls back to the page, the Page.Form property is null (I
don't exactly know why but there does not appear to be a way to initialize
it). I have been unable to find a solutions to this and any approaches
would be helpful. There is a form control in the controls collection but
again it is not registered with the page.
Thanks,
Justin