Pages

Men

rh

7/11/2012

How do you turn tracing on and off for an ASP.NET web application?


How do you turn tracing on and off for an ASP.NET web application?
 
Tracing can be turned on or off for an entire Web application or for an individual page in the application:
 
1. To turn tracing on for an entire application, in the application’s Web.config file, set the trace element’s Enabled attribute to True.
 
Or 
 
2. To turn tracing on for a single page, set the DOCUMENT object’s Trace property to True in the Visual Studio .NET Properties window. This sets the @ Page directive’s Trace attribute to True in the Web form’s HTML.

No comments :

Post a Comment