Microsoft.NET Question:

Is there built-in support for tracing/logging?

Microsoft.NET Interview Question
Microsoft.NET Interview Question

Answer:

Basically there are two ways by which you can enable tracing.

i. page label ii.application label.

For page label tracing in the page directive write the following

<@page trace="True">

and if you want show some message then either wrire trace.write(message) or trace.warn(some warning message)

note that trace.warn will show the message in red color.


Previous QuestionNext Question
How to redirect tracing to a file?How to stop a thread?