See Also: TraceContext Members
You can use this class to append messages to specific trace categories. For example, if you are creating an instance of the System.Web.UI.WebControls.Calendar class for your application, you might include the trace message "Starting To Render" in a rendering procedure, and "Raising OnChange Event" in an event handler procedure.
To enable tracing, set the Trace attribute in the @ Page directive or the TraceContext.IsEnabled property to true. When tracing is enabled, in addition to showing user-provided trace content, the System.Web.UI.Page class automatically includes performance data, control-tree structure information, and state management content for every request.