Trace Messages
The first thing to understand is how to add trace messages to ASP.NET pages. All you must do is add a Trace=True attribute to the @page directive at the top of the ASPX page, as follows:
<%@ Page language=”c#” Trace=”true” Codebehind=”WebForm1.aspx.cs” AutoEventWireup=”false” Inherits=”Chapter22.WebForm1” %>
Adding the Trace=True attribute ASP.NET generates extensive information about requests made to that page and appends it as part of a page rendering, as shown in Figure 22.1.
Figure 22.1. Adding Trace=true to the @Page directive causes ASP.NET to output extensive trace information.
Consider for a minute what kind of information ...
Get Special Edition Using® Microsoft® ASP.NET 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.