Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP Clear Method

ASP Clear Method


Response Object Reference Complete Response object reference manual


The Clear method clears any buffered HTML output.

**Note:** This method cannot clear the response headers; it can only clear the response body.

**Note:** If response.Buffer is false, this method will cause a run-time error.

Syntax

response.Clear

Example

<%

response.Buffer=true

%>

This is some text I want to send to the user.

No, I changed my mind. I want to clear the text.

<%

response.Clear

%>

Output:

(nothing)


Response Object Reference Complete Response object reference manual