Trace for loop ( : Trace « Development « ASP.Net

Trace for loop (

<%@ Page Language="VB" Trace="true" %>
<script runat="server">
    Sub Page_Load()
        For counter As Integer = 0 To 9
            ListBox1.Items.Add("item " & counter.ToString())
            Trace.Warn("counter=" & counter.ToString())
    End Sub
    <title>Page Trace</title>
    <form id="form1" runat="server">
        Runat="server" />


Related examples in the same category

1.Is trace enabled (
2.Write to Trace (
3.Use Trace to debug (
4.Page trace mode (
5.Write trace warn (
6.Trace asp calendar event (C#)
7.Page Trace in code behind (C#)
8.Write debug information to trace log (C#)
9.Page Trace (C#)
10.Write to Trace log in event action (C#)