I'm trying to log some debug messages in a template using Out.DebugWriteLine.
The problem is I need to use it in a code behind section (<script runat="server">) in the Page_Load method.
I receive this error when using Out:
CS0103: The name 'Out' does not exist in the current context
So I tried adding <$@ Import Namespace="CrownPeak.CMSAPI" $> right before the script section, but then I receive:
"The type or namespace name 'CMSAPI' does not exist in the namespace 'CrownPeak' (are you missing an assembly reference?)"
How can I use Out.DebugWriteLine in Page_Load or is there a better logging solution?
...Thanks...
...Michael...