Trace for loop (VB.net)
<%@ 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()) Next End Sub </script> <html> <head> <title>Page Trace</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ListBox id="ListBox1" Runat="server" /> </div> </form> </body> </html>