<%@ Page Language="C#" Trace="true" %>
<script runat="server">
private void Page_Load(Object Source, EventArgs E)
{
Trace.Write("Page_Load", "Declaring and initializing variables.");
int _A = 10;
int _B = 20;
Trace.Write("Page_Load", "Applying add operation.");
_A += _B;
Trace.Write("Page_Load", "Variable values changed.");
Trace.Write("_A", _A.ToString());
Trace.Write("_B", _B.ToString());
}
</script>
<html>
<head>
<title>Enabling Page Level Tracing</title>
</head>
<body>
<form runat="server">
<!-- Insert content here -->
</form>
</body>
</html>
|