Captures and presents execution details about a Web request. This class cannot be inherited.
Assembly: System.Web (in System.Web.dll)
You can use this class to append messages to specific trace categories. For example, if you are creating an instance of the 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.
You can also use the class to obtain a set of trace records at the end of request execution for custom processing. For more information, see ASP.NET Tracing Overview.
To enable tracing, set the Trace attribute in the @ Page directive or the IsEnabled property to true. When tracing is enabled, in addition to showing user-provided trace content, the Page class automatically includes performance data, control-tree structure information, and state management content for every request.
|Walkthrough: Using Tracing in Visual Web Developer to Help Find Web Page Errors||Building ASP .NET Web Applications in Visual Studio|
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.