Microsoft.NET Question:
Download Job Interview Questions and Answers PDF
Is there built-in support for tracing/logging?
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.
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.
Download Microsoft.NET Interview Questions And Answers
PDF
Previous Question | Next Question |
How to redirect tracing to a file? | How to stop a thread? |