Tracing using Page.Trace : Trace « Page Lifecycle « ASP.NET Tutorial






File: Web.config

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

C#

protected void Page_Load(object sender, EventArgs e)
{
    Trace.Write("This message is from the START of the Page_Load method!");
}








5.18.Trace
5.18.1.Tracing using Page.Trace