P
phil
I decided to use AddOnPreRenderCompleteAsync to avoid holding on to a
thread pool thread for too long. (I do some webserver I/O etc. during
the page build).
In the beginevent handler I fire up a new thread (not a thread pool
thread, but rather System.Threading.Thread) and within that thread I
do all of my page build. Eventually my endevent handler gets called
and the page completes.
It works perfectly except for one major problem: most of my page
content is missing. For example, I have a panel called 'viewpanel'
that I add a bunch of dynamically created tables to. The viewpanel
shows in the markup, but non of its tables. Within the Control Tree
(as shown using the ASP.NET trace feature), the various tables are
there shown under viewpanel's hierarchy though the render size bytes
are 0.
What am I missing?
thread pool thread for too long. (I do some webserver I/O etc. during
the page build).
In the beginevent handler I fire up a new thread (not a thread pool
thread, but rather System.Threading.Thread) and within that thread I
do all of my page build. Eventually my endevent handler gets called
and the page completes.
It works perfectly except for one major problem: most of my page
content is missing. For example, I have a panel called 'viewpanel'
that I add a bunch of dynamically created tables to. The viewpanel
shows in the markup, but non of its tables. Within the Control Tree
(as shown using the ASP.NET trace feature), the various tables are
there shown under viewpanel's hierarchy though the render size bytes
are 0.
What am I missing?