Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.Debug clearTrace Method

Clears all trace messages from the TraceConsole<textarea> element.

Syntax

Sys.Debug.clearTrace(text);

Remarks

Debugging behavior, requirements, and the output of trace messages vary with different browsers. For more information, see ASP.NET AJAX Debugging and Tracing Overview.

Example

The following example shows a click handler function that clears the contents of the trace console. This is part of a larger example from the Sys.Debug class overview.

CS

function btnClear_onclick() {
    Sys.Debug.clearTrace()
    alert("Trace console cleared.");
}

VB

function btnClear_onclick() {
    Sys.Debug.clearTrace()
    alert("Trace console cleared.");
}