Re: Programmatically enable trace debug for a page



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?



.