System.Web.UI Namespace Page Class
Returns the TraceContext object associated with the page.
Script |
[ TraceContext variable = ] Page.Trace |
variable |
Returns the current data in the TraceContext object. |
The property is read only with no default value.
Tracing tracks and presents the execution details about a Web request. For trace data to be visible in a rendered page, you must enable tracing at the page or application level.
Tracing on a page is disabled by default. To enable tracing for a page, include trace=true
in the @ Page directive. To enable tracing for an entire application, you must enable it in the application's web.config file, which resides in the root directory of the application.
For more information, see ASP.NET Trace Functionality.
Page Members TraceContext