Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2008

Tip: Looking for answers? Try searching our database.

HTTP page events question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mroberts@delphiaconsulting.com - 14 Feb 2008 21:47 GMT
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
mroberts@delphiaconsulting.com
Mufaka - 14 Feb 2008 22:22 GMT
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.

> 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
[quoted text clipped - 24 lines]
> Delphia Consulting
> mroberts@delphiaconsulting.com
mroberts@delphiaconsulting.com - 19 Feb 2008 16:45 GMT
> It would be helpful to know which version of .NET you are running.
>
[quoted text clipped - 37 lines]
>
> - 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.
mroberts@delphiaconsulting.com - 19 Feb 2008 17:09 GMT
> It would be helpful to know which version of .NET you are running.
>
[quoted text clipped - 37 lines]
>
> - 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.