Help > Web Development > Reference > Scripting Objects > Response Object > Clear Method

Response.Clear Method

The Clear method erases any buffered response content. However, response headers are preserved.  Use the clear method to handle error output.

Syntax
Response.Clear

Example
<%
On Error Resume Next
' Do page processing
If Err.Number <> 0 Then
    Response.Clear
    Response.Write "An error has occurred"
    Response.End
End If
On Error Goto 0
 %>

Applies To
Response Object