Page trace mode (VB.net) : Trace « Development « ASP.Net





Page trace mode (VB.net)

<%@ Page trace= "true" %>
<script runat = "server">
Public Function Subtract( intFirst As Integer, intSecond As Integer) As Integer

  Trace.Write( " intFirst : ", intFirst)
  Trace.Write("intSecond : ", intSecond)
  return intFirst - intSecond
End Function
</script>

The value of 45 minus 30 is : <%=Subtract(45, 30) %>

           
       










Related examples in the same category

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