Tracing Page Execution
If you want to output trace messages while a page executes, you can enable tracing for a particular page or an entire application. The ASP.NET Framework supports both page-level tracing and application-level tracing.
The page in Listing 1.21 illustrates how you can take advantage of page-level tracing.
Listing 1.21. PageTrace.aspx
The <%@ Page %>
directive in Listing 1.21 includes a trace="true"
attribute. This attribute enables tracing and causes a Trace Information section to be appended to the bottom of the page (see Figure 1.16).
Figure 1.16. Viewing page trace information.
Notice, furthermore, that the Page_Load() ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.