Write to Trace (VB.net) : Trace « Development « ASP.Net






Write to Trace (VB.net)

<%@ Page Trace="true"%>
<script language="VB" runat="server">
 Sub WriteToTrace()
     Dim intCounter as integer
     intCounter=1
     Trace.Write ("FirstCategory", "Variable is initialized")
     do while intCounter > 10
      intCounter = intCounter + 1
     loop 
     if intCounter < 10 then 
         Trace.Warn("ErrorCategory", "Value of intCounter is not incrementing")
     end if
 end Sub
</script>
<%
 WriteToTrace()
%>

           
       








Related examples in the same category

1.Is trace enabled (VB.net)
2.Trace for loop (VB.net)
3.Use Trace to debug (VB.net)
4.Page trace mode (VB.net)
5.Write trace warn (VB.net)
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#)