- 1. Turn on ASP.NET trace and run the Web application.
- 2. Add a few code to each of the page life-cycle events that will print the current time.
- 3. In the Web.config file, add the monitorTimings attribute and set it to True.
- 4. In the Web site properties, turn on the performance monitor and run the Web application. After that, open performance monitor to see the timings.
- 1. Turn on ASP.NET trace and run the Web application.
- 2. Add a few code to each of the page life-cycle events that will print the current time.
- 3. In the Web.config file, add the monitorTimings attribute and set it to True.
- 4. In the Web site properties, turn on the performance monitor and run the Web application. After that, open performance monitor to see the timings.
* Disclaimer :
Credit for this question goes to :
http://www.thinkinterview.com/Interview-Questions/q90_How-will-you-identify-which-event-in-the-ASP-NET-Web-page-life-cycle-takes-.aspx