ASP.NET Tutorial/Page Lifecycle/Trace

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

Tracing using Page.Trace

   <source lang="csharp">

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!");

}</source>