Posts

Showing posts from December, 2011

Measuring Page Execution Times for ASP.NET Pages

Measuring Page Execution Times for ASP.NET Pages Abstract - (Technical Article) Someone asked me about the page execution time shown at the bottom of this (and every) page. So I thought I would post an article on how to incorporate a page execution timer in your own ASP.NET pages. It’s fairly simple but requires an understanding of the ASP.NET page life cycle. ( Dominic Pettifer ) Monday 27th November 2006 - 7:57pm Understanding the Page Lifecycle It measures the time taken to render this page to HTML, this includes all back end database access stuff, any user or server controls and their own database access, and data binding of web controls. Also the processing of any client side button clicks or other UI interaction and the server side code that fires in response to those events. Basically almost everything. The ASP.NET page life cycle goes through several stages before HTML is rendered and sent to the client. First the Page.Init event is fired, all controls are in