ASP.NET: View Trace Information on your ASP.NET Web Pages


Previous Topic Previous Next Topic Next
Xoc Software
Training
RVBA Conventions
Maya Calendar Program
Company Information
Tools
ASP.NET and Other Tips
.NET: Debugging Designer Features of a Custom Control in Visual Studio
.NET: Setting the Default Font in a Windows Mobile/Compact Framework Custom Control
.NET Fixing C# XML Comments so they Work in Windows XP SP2
.NET: Getting and Setting the Application Version Number
.NET: Getting the Path of the Executing Assembly
.NET: Retrieving Assembly Attributes
.NET: Setting the RootFolder to Other Values in the FolderBrowserDialog in .NET
.NET: Sizing Columns in a ListView Control in .NET
.NET: Using Remoting in .NET
ASP.NET: Constructing a Graphic on the Fly in ASP.NET
ASP.NET: Controlling Caching in ASP.NET Web Forms
ASP.NET: How to use the FrontPage Server Extensions with ASP.NET
ASP.NET: Seeing What is in the ViewState in ASP.NET Web Forms
ASP.NET: Using Forms Authentication in ASP.NET
ASP.NET: View Trace Information on your ASP.NET Web Pages
ASP: Create XML from an ADO query
ASP: Detect Incomplete Loads
ASP: Including an ASP.NET Web Page In a Classic ASP Web Page
ASP: Process .HTM Files with Scripts and Server Side Includes
ASP: QuickSort Algorithm
ASP: Retrieve all server variables from IIS
ASP: Send Email from Active Server Page
HTML: How to Create a Non-Scrolling Region in HTML
IE: Allowing Only Certain ActiveX Controls to Run in Internet Explorer
IIS: Creating a web site for testing in IIS Server
IIS: Creating Multiple Web Sites within IIS on Windows 2000 and Windows XP Professional
IIS: IIS/Visual InterDev Problems and Fixes
IIS: Redirect a domain such as xoc.net to www.xoc.net
SQL Server: Execute SQL Server Updategram
Web Design: Design for People with Disabilities
Web Design: Keep a Web Page out of the Google Cache
Windows: Get HTTP Header of a Web Page using Telnet
Windows: Testing Domain Names without DNS
Windows: Using Hosts File to Access Web Sites with XP SP2
Windows: Windows XP Command Line Tools
Windows Mobile: Reprogramming the Push-to-Talk Button on the AT&T Tilt
Articles
Miscellaneous
Downloads
Links
Search
Email

Other Xoc managed sites:
http://grr.xoc.net
http://www.986faq.com
http://www.mayainfo.org
http://www.codexarchive.com

If you want to see a huge amount of info about your pages, add Trace="true" to the @Page directive at the top of each ASP.NET page. An example is:

<%@ Page Language="vb" AutoEventWireup="false" 
Codebehind="editusers.aspx.vb" Inherits="xoc.ZapEm.EditUsers" Trace="true" %>

Alternately, you can instead change the web.config file for the web site. Change the trace enabled="false" to enabled="true". Then visit the virtual page trace.axd; if your web site is example.com, then visit http://www.example.com/trace.axd. This will show the trace information for the last 10 web pages on your site with all the debugging information.

Obviously, you should only use this for debugging and turn it to false before posting to a production web server. Info that you will get:

  • Request Details
    • Session Id
    • Request Type
    • Time of Request
    • Status Code
    • Request Encoding
    • Response Encoding
  • Trace Information
    • Timings
  • Control Tree
    • Control ID
    • Type
    • Render Size Bytes
    • ViewState Size Bytes
  • Session State
    • What's in session variables
  • Cookies Collection
    • What's in each of the cookies passed in
  • Headers Collection
    • What all of the HTTP headers in the request report
  • Server Variables
    • The value of each of the server variables

Top