The Clear method erases any buffered response content. However, response headers are preserved. Use the clear method to handle error output.
SyntaxResponse.Clear |
<% 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 %> |