Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Trace events in vb.net code

Posted on 2010-09-23
3
587 Views
Last Modified: 2012-06-27
Hi,
  How can I trace events in VB.NET 2003 code? I would like to know what pages and events that code went through to reach page requested?

Thanks.
0
Comment
Question by:amitabh04
  • 2
3 Comments
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33749525
You can enable Tracing and in your code use the Trace.Write() function to make notes to the trace log at the points you need to see.  See http://www.4guysfromrolla.com/webtech/081501-1.shtml for examples.
0
 

Author Comment

by:amitabh04
ID: 33761150
Hi,
  Trace is on in web config file but don't see on web page any trace information. The following is the comment in the site that was provided.

"When tracing is enabled you automagically get a plethora of information on the ASP.NET Web page. Information like:

Request Details - Session Id; Request time, type, and encoding; status code, etc.
Trace Information - Page-level ASP.NET messages that you specify via Trace.Write and Trace.Warn.
Control Tree - A listing of the Web controls on the ASP.NET Web page, and how they relate to one another.
Cookies Collection - A listing of all of the cookies.
Headers Collection - A listing of all of the HTTP headers.
Server Variables - A listing of all of the server variables "


Where sould I look at for trace information?

Thanks.
0
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
ID: 33761327
You have to goto the trace page.

After loading your page ( ie. Page.aspx ), replace the page name with Trace.axd. It will pull up you traces.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question