HTTP page events question

  • Thread starter Thread starter mroberts
  • Start date Start date
M

mroberts

I'm writing a web application that has several pages and each page has
multiple levels of custom controls (ascx's). I'm noticing a
performance issue when one of the pages loads. It takes about 60
seconds to load. I have put in trace statements in almost every
method of the page and its child controls, but there are 30 seconds
that I can't track down.

As I understand .NET when I click on a link on one page, it sends the
request to the server to display another page. In my code there are
Init, Load, and PreRender event handlers for the page and most of the
child controls. As I said, I have put trace statements everywhere,
but there are still 30 seconds elapsing before it ever gets to my
first Init event trace statement.

My question is "what, if anything, happens BEFORE the Init event?" Or
is there something happening to Unload the previous page that I don't
know about. I have just never seen any resource that explains in
detail the events that happen during a page's lifetime until it's
served to the client.

Any help would be greatly appreciated. Taking over 30 seconds to load
a page isn't going to fly with the customer!

Thanks!

Mark Roberts
Delphia Consulting
(e-mail address removed)
 
It would be helpful to know which version of .NET you are running.

Here's a life-cycle overview for 2.0

http://msdn2.microsoft.com/en-us/library/ms178472(VS.80).aspx

If pages need to be compiled before they are served, you will get a long
er load time than normal on the first request, but after that they
should be quicker.








- Show quoted text -

Thank you very much for the response and the link. It does seem like
the compiling of the pages is what is taking so long. I have noticed
that once the page is loaded it is very fast whenever I come back to
that page so it is just the initial page display that is the problem.
I am going to try and compile the pages with the aspnet_compiler
command and see if that helps.

We are using .Net 1.1 currently, but expect to move to 2.0 or 3.0
before this summer. Also, we are using Visual Studio 2003 to develop
the application. I will make sure to include that information in any
future posts I make.
 
It would be helpful to know which version of .NET you are running.

Here's a life-cycle overview for 2.0

http://msdn2.microsoft.com/en-us/library/ms178472(VS.80).aspx

If pages need to be compiled before they are served, you will get a long
er load time than normal on the first request, but after that they
should be quicker.








- Show quoted text -

It doesn't look like the aspnet_compiler command is available for .Net
1.1. Is that true? Is there any other way to pre-compile pages for a
1.1 website?

Mark
 
Back
Top