Trace.IsEnabled : Trace « Development « ASP.NET Tutorial






<%@ Page Language="vb" %>
<html>
   <head>
      <title></title>
      <script runat="server">
         Sub Page_Load()
            If Trace.IsEnabled = True Then
               Message.Text = "Tracing is enabled."
            Else
               Message.Text = "Tracing is not enabled."
            End If
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>








9.44.Trace
9.44.1.Trace.IsEnabled
9.44.2.Enable trace in Web.config
9.44.3.Enabling Page Level Tracing
9.44.4.Set Page.Trace.IsEnabled to true (C#)
9.44.5.Write warning message with Trace.Warn
9.44.6.Use Trace.Write to write message (C#)
9.44.7.Trace to a file