By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,696 Members | 2,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,696 IT Pros & Developers. It's quick & easy.

What happens between Page.PreRender and Page.Unload event?

P: n/a
Hi All,

In an ASP.NET project I am trying to improve performance. As it is now there
seems to be a huge bottleneck between the end of the Page.PreRender event
and the beginning of the Page.Unload event. Using a performance analyzing
tool (AqTime 4.9) I am not able to find out what is happening between these
2 events. Can anyone shine some light on what is normally going on between
these 2 events?

Thanks in advance.

Mariella
May 8 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
When your page prerender completes, the SaveViewState processing kicks in
and the child controls in the page are are all rendered with their relevent
vewstate data. The type of controls you are rendering may be the cause of
your delays if they are making heavy use of viewstate, and it can grind your
site to dust. In 2 its improved, but it can still be quite heavy.

If I was debugging it I would start by looking here. Perhaps turn off
viewstate for the page and see what the measurement difference was and then
gradually turn it on optionally for each control and measure your results.
Even with viewstate diabled ControlState will still be active, so your app
may well still work as normal.

Setting each controls "EnableViewState" property to "false" is the best
choice if you can use it, or better still disable the whole page.

Some light reading for you.
http://msdn.microsoft.com/msdnmag/is...e/default.aspx
--
Regards

John Timney
Microsoft MVP

"Mariella Bakker" <ma*************@pasoftware.nl> wrote in message
news:44***********************@news.xs4all.nl...
Hi All,

In an ASP.NET project I am trying to improve performance. As it is now
there seems to be a huge bottleneck between the end of the Page.PreRender
event and the beginning of the Page.Unload event. Using a performance
analyzing tool (AqTime 4.9) I am not able to find out what is happening
between these 2 events. Can anyone shine some light on what is normally
going on between these 2 events?

Thanks in advance.

Mariella

May 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.