Re: Programmatically enable trace debug for a page
- From: "Steve Lynch" <user@xxxxxxxx>
- Date: Fri, 29 Sep 2006 16:31:10 -0600
I wish it were that easy. The compiler gives me these errors:
Error 1 Property or indexer 'System.Web.UI.Page.Trace' cannot be assigned to --
it is read only H:\Code\VC#\TestApp\1.0\Default.aspx.cs 83 17 H:\...\2.0\
Error 2 Cannot implicitly convert type 'bool' to 'System.Web.TraceContext'
H:\Code\VC#\TestApp\1.0\Default.aspx.cs 83 30 H:\...\2.0\
"Dominick Baier" <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4580be631548a8c8b210d9d3cf9c@xxxxxxxxxxxxxxxxxxxxx
Page.Trace = true;
---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com
Is there a way to enable the trace output programmatically? For
example in the
web.config under I have:
<trace enabled="true" localOnly="true" pageOutput="true" />
but then I would like the code to decide at runtime (by a variable in
the URL query string or something) if debug tracing output should be
displayed for that page (similar to localOnly="false"). Any
suggestions?
.
- Follow-Ups:
- Re: Programmatically enable trace debug for a page
- From: Dominick Baier
- Re: Programmatically enable trace debug for a page
- References:
- Programmatically enable trace debug for a page
- From: Steve Lynch
- Re: Programmatically enable trace debug for a page
- From: Dominick Baier
- Programmatically enable trace debug for a page
- Prev by Date: Authentication Sharing Across Apps
- Next by Date: Re: Cookieless Sessions (Sessions Without Cookies) and Security
- Previous by thread: Re: Programmatically enable trace debug for a page
- Next by thread: Re: Programmatically enable trace debug for a page
- Index(es):
Relevant Pages
|