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