O'Reilly logo

Sams Teach Yourself ADO.NET in 24 Hours by Paul Bertucci, Jason Lefebvre

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ASP.NET Tracing

ASP.NET provides an extremely handy tool for discovering bottlenecks in your application. Specify trace="true" in the Page directive of your Web form as in the following line:

<% @Page debug="true" trace="true" Language="VB" %>

The next time you load your Web form, you will notice that ASP.NET has automatically printed out a wealth of information for you below your form. In addition to the entire control tree for your form, all server variables and request values, you can see exactly how long each stage of the page's life cycle took. You can see this in Figure 23.1.

Figure 23.1. Trace information provided automatically by ASP.NET.

The last two columns in the Trace Information section provide the exact (probably more exact than ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required