Understanding Tracing in ASP.NET 2.0
page 2 of 6
by SANJIT SIL
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 27041/ 66

Page level Tracing

We can enable ASP.NET tracing on a page-by-page basis by adding "Trace=true" to the Page directive in any ASP.NET page.

Listing 1

<%@ Page Language="C#" Trace="true" TraceMode = "SortByCategory" 
    Inherits  = "System.Web.UI.Page" CodeFile="Default.aspx.cs" %>

We can also add the TraceMode attribute that sets SortByCategory or the default, SortByTime. SortByTime option is used to see the methods that take up the most CPU time in application. We can enable tracing programmatically using the Trace.IsEnabled property.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2021 ASPAlliance.com  |  Page Processed at 2021-03-02 9:03:39 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search