Write debug information to trace log (C#) : Trace « Development « ASP.Net






Write debug information to trace log (C#)


<%@ Page trace= "true" %>

<script Language="c#" runat = "server">
  public int Subtract(int intFirst, int intSecond)
  {

    Trace.Write(" intFirst : ", intFirst.ToString());
    Trace.Write("intSecond : ", intSecond.ToString());

    return intFirst - intSecond;
  }
</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.Page trace mode (VB.net)
6.Write trace warn (VB.net)
7.Trace asp calendar event (C#)
8.Page Trace in code behind (C#)
9.Page Trace (C#)
10.Write to Trace log in event action (C#)