The Clear method erases any buffered output. However, the Clear method erases only the response body; it does not erase response headers. You can use this method to handle error cases.
Response.Clear
Response Object
End, Flush