Does the class you have inherit from the page object?
You can always use HttpContext.Current.Trace.Warn, which is the real method
call and not the shortcut that pages derived from the System.Web.UI.Page
provide.

Signature
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
>I have a page with Trace.Warns statements in my Page_Load and functions
>that it calls, but it doesn't seem to work in a class that is defined on
[quoted text clipped - 49 lines]
>
> Tom
tshad - 28 Sep 2007 03:57 GMT
> Does the class you have inherit from the page object?
>
> You can always use HttpContext.Current.Trace.Warn, which is the real
> method call and not the shortcut that pages derived from the
> System.Web.UI.Page provide.
That was it.
I thought like all my other code when I don't use code-behind (Dreamweaver),
I can access functions such as Trace. I normally don't have to explicitly
define HttpContect.Current in my pages.
Thanks,
Tom
>>I have a page with Trace.Warns statements in my Page_Load and functions
>>that it calls, but it doesn't seem to work in a class that is defined on
[quoted text clipped - 49 lines]
>>
>> Tom