473,405 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Perf issue with PreRender

I added my own Trace message to the OnPreRender event, and now my trace
output is rather interesting:

aspx.page Begin PreRender 1.323881 0.000060
OnPreRender start at 9/13/2005 4:08:15 PM 1.357799 0.033917
OnPreRender end at 9/13/2005 4:08:15 PM 1.922175 0.564376
aspx.page End PreRender 2.640666 0.718491
Between my Trace call and the built-in ASP.NET trace functionality,
there is a span of almost three quarters of a second! The message
"OnPreRender end" is the LAST line of code in that method. What code
is running during the time between this trace call and ASP.NET's trace
output?!? It's obviously taking up a significant time slice.

Nov 19 '05 #1
1 1720
asp.net is running OnPreRender for each control added to the page
collection. Most likely one of your controls is doing at lot of work in
prerender.

-- bruce (sqlwork.com)
<br******@hotmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
I added my own Trace message to the OnPreRender event, and now my trace
output is rather interesting:

aspx.page Begin PreRender 1.323881 0.000060
OnPreRender start at 9/13/2005 4:08:15 PM 1.357799 0.033917
OnPreRender end at 9/13/2005 4:08:15 PM 1.922175 0.564376
aspx.page End PreRender 2.640666 0.718491
Between my Trace call and the built-in ASP.NET trace functionality,
there is a span of almost three quarters of a second! The message
"OnPreRender end" is the LAST line of code in that method. What code
is running during the time between this trace call and ASP.NET's trace
output?!? It's obviously taking up a significant time slice.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Pohihihi | last post by:
I was wondering what is the ill effect of using try catch in the code, both nested and simple big one. e.g. try { \\ whole app code goes here } catch (Exception ee) {}
4
by: Adam Boczek | last post by:
I've a dropdownlist control to change language on my page. Because of page lifetime, I have to set all my labels, texts etc. from ResourceManager in prerender handler to be sure that culture change...
0
by: bryanp10 | last post by:
I added my own Trace message to the OnPreRender event, and now my trace output is rather interesting: aspx.page Begin PreRender 1.323881 0.000060 OnPreRender start at 9/13/2005...
3
by: Matt Jensen | last post by:
Howdy all - and seasons greetings Just wondering, I've recently discovered the PreRender event for .NET (both for the page and for controls), which seems like a life saver for doing page data...
2
by: wubin_98 | last post by:
Hi All, Could any expert point out what is wrong in my code? I search around but couldn't found answer. It seems that I am the first person have this problem. Thanks in advanced I have a...
0
by: bne | last post by:
Hi All, I have a shopping cart app that (I think) has broken due to an upgrade to .NET 2.0. Some products display fine: <http://ukweddinggroup.com/default.aspx?prd=11> Others display okay...
3
by: jc | last post by:
Hello. I have a gridview column item that i want to not make visible if the bound data in that cell is less than a value in a textbox. However, I notice at the time my code checks a function...
1
by: Ben | last post by:
Hi, I registered some custom perf counters that i want to use in my app (all of type NumberOfItems32). I added them under the same category name but different counter names... Same code work...
1
by: Ben | last post by:
hi, i have this line in a web app to create a custom perf category: PerformanceCounterCategory.Create(categoryName, categoryDesc, PerformanceCounterCategoryType.SingleInstance, ccdc); ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.