471,086 Members | 1,199 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

removing some values from trace

vsr
is there any way to remove some information from trace, tracing by default
displays session , application variables, but i need to remove these two from
trace.can any let me know how can i do it?
Dec 5 '05 #1
5 1036
No. Why would you want to though?

--
MY ASP.Net tutorials
http://www.openmymind.net/
"vsr" <vs*@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
is there any way to remove some information from trace, tracing by default
displays session , application variables, but i need to remove these two
from
trace.can any let me know how can i do it?

Dec 5 '05 #2
vsr
As we dont want to display Application/session variables on the form.. we
just want to display other trace info except this.

"Karl Seguin" wrote:
No. Why would you want to though?

--
MY ASP.Net tutorials
http://www.openmymind.net/
"vsr" <vs*@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
is there any way to remove some information from trace, tracing by default
displays session , application variables, but i need to remove these two
from
trace.can any let me know how can i do it?


Dec 5 '05 #3
You should only be using/showing this information for debugging purposes in
development.

The only solution I know that might work would be to hide the table
containing the data using javascript. However, you could simply view it
using "view source"

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"vsr" <vs*@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
As we dont want to display Application/session variables on the form.. we
just want to display other trace info except this.

"Karl Seguin" wrote:
No. Why would you want to though?

--
MY ASP.Net tutorials
http://www.openmymind.net/
"vsr" <vs*@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
> is there any way to remove some information from trace, tracing by
> default
> displays session , application variables, but i need to remove these
> two
> from
> trace.can any let me know how can i do it?


Dec 5 '05 #4
vsr
Yes,the tracing is only enabled in development environment and enabling
tracing dynamically based on some value in the page, if hiding some part is
not possible is there any global setting which overrides the page settings?

"Karl Seguin" wrote:
You should only be using/showing this information for debugging purposes in
development.

The only solution I know that might work would be to hide the table
containing the data using javascript. However, you could simply view it
using "view source"

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"vsr" <vs*@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
As we dont want to display Application/session variables on the form.. we
just want to display other trace info except this.

"Karl Seguin" wrote:
No. Why would you want to though?

--
MY ASP.Net tutorials
http://www.openmymind.net/
"vsr" <vs*@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
> is there any way to remove some information from trace, tracing by
> default
> displays session , application variables, but i need to remove these
> two
> from
> trace.can any let me know how can i do it?


Dec 5 '05 #5
As I said, I think you are pretty much out of luck.

Get Reflector and look at what the Page class does during ProcessRequest().
You'll note that it calls ProcessRequestMain (which is where all the page
events are fired, init, load, postback, ...) and then it calls
ProcessRequestEndTrace which calls Trace.EndRequest() if tracing is enabled.

EndRequest simply goes through each collection (context.Session) and adds
all the values to the trace.

Unfortunetly, all these methods are internal.

To get it to work, you would need to register .aspx with a different handler
(doable via machine.config) and rewrite most of the code of the page
class....a daunting task.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"vsr" <vs*@discussions.microsoft.com> wrote in message
news:C1**********************************@microsof t.com...
Yes,the tracing is only enabled in development environment and enabling
tracing dynamically based on some value in the page, if hiding some part
is
not possible is there any global setting which overrides the page
settings?

"Karl Seguin" wrote:
You should only be using/showing this information for debugging purposes
in
development.

The only solution I know that might work would be to hide the table
containing the data using javascript. However, you could simply view it
using "view source"

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"vsr" <vs*@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
> As we dont want to display Application/session variables on the form..
> we
> just want to display other trace info except this.
>
> "Karl Seguin" wrote:
>
>> No. Why would you want to though?
>>
>> --
>> MY ASP.Net tutorials
>> http://www.openmymind.net/
>>
>>
>> "vsr" <vs*@discussions.microsoft.com> wrote in message
>> news:3E**********************************@microsof t.com...
>> > is there any way to remove some information from trace, tracing by
>> > default
>> > displays session , application variables, but i need to remove these
>> > two
>> > from
>> > trace.can any let me know how can i do it?
>>
>>
>>


Dec 5 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by RHPT | last post: by
4 posts views Thread by Jim in Arizona | last post: by
9 posts views Thread by Adrian Parker | last post: by
2 posts views Thread by news.microsoft.com | last post: by
3 posts views Thread by shawn | last post: by
7 posts views Thread by David Lozzi | last post: by

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.