Enable trace in Web.config : Trace « Development « ASP.NET Tutorial






File: web.config

<configuration>
   <system.web>
      <trace enabled="true"/>
   </system.web>
</configuration>








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