Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

ASP Clear Method


❮ Complete Response Object Reference

The Clear method clears any buffered HTML output.

Note: This method does not clear the response headers, only the response body.

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

Syntax

response.Clear

Examples

<%
response.Buffer=true
%>
<html>
<body>
<p>This is some text I want to send to the user.</p>
<p>No, I changed my mind. I want to clear the text.</p>
<%
response.Clear
%>
</body>
</html>

Output:

(nothing)

❮ Complete Response Object Reference