473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Trace in Controls

I have coded a Trace.Write in the codebehind of a Control.
This message does not appear when I navigate to trace.axd.

If I place the Trace.Write in the codebehind of the WebForm which hosts
the control, the message appears in trace.axd.

Is it possible to use the Trace.Write method within a Control?

E.g.
MyControl.ascx.cs ...

private void Page_Load(object sender, System.EventArgs e) {
Trace.Write("any category", "any message");
}

Jul 24 '06 #1
1 1018
Ben
Do you have tracing enabled in the page while trying to view trace output in
the control?

Try something like this.

Trace.IsEnabled = true;
Trace.Write("any category", "any message");
Trace.IsEnabled = false;

"Libsta" <li**********@yahoo.co.ukwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
>I have coded a Trace.Write in the codebehind of a Control.
This message does not appear when I navigate to trace.axd.

If I place the Trace.Write in the codebehind of the WebForm which hosts
the control, the message appears in trace.axd.

Is it possible to use the Trace.Write method within a Control?

E.g.
MyControl.ascx.cs ...

private void Page_Load(object sender, System.EventArgs e) {
Trace.Write("any category", "any message");
}

Jul 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lamont | last post by:
I set <%@ Page Language = "vb" ... Trace="true" %> when doing a sing along with the Course 2310B textbook. The book says the trace output will be shown at the bottom of the web page. The result...
6
by: Phil Jollans | last post by:
Hi, I have an error dialog which shows the stack trace, usually without line numbers in the release version. To try to diagnose a particular problem, I have provided a user with a debug version...
4
by: Erik Cruz | last post by:
Hi. I am creating a custom control that uses the RegisterHiddenField method to insert a hidden field on a page. When I tried to see the value of the hidden field on a trace, I noticed that it...
0
by: Jeff Tolman | last post by:
Hi! I keep getting this error, but I'm not sure why. When I turn off the trace flag, I only get it at certain times. Even with the trace flag set to true, I don't understand the output...
5
by: TPS | last post by:
When I set trace enable to true in my web.config file, the debug info does not display at the "bottom" of the page, it displays "under" all of my buttons, labels, grids etc. This behavior...
3
by: Rob C | last post by:
Hi, I turned on page level tracing, but the trace output overwrites the the controls on the page. All I did was: - create a new asp.net web app - Put 3 labels, 2 textboxes and one button on the...
3
by: Bruno Paquette | last post by:
I have installed visual studio .net and now i started to write the first few examples from the 70-315 book by Kalani. It looks like all server side code that i put between <% %> doesnt process...
1
by: John Dalberg | last post by:
I have a web page with user controls and server controls and some of them are data bound. I need a way to find out the sequence of events that get fired from the point I click a button to the...
2
by: Benny | last post by:
Is there a way to trace exceptions and messages captured with the Enterprise Library to a custom destination like a text box or any other control? If not can anyone think of a way to "hack"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.