ASP Clear Method
Clear Clear any HTML output method has been buffered.
Note: This method does not clear the response headers, body only empty response.
Note: If response.Buffer is false, then this method will cause a run-time error.
grammar
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>
输出:
(nothing)
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>
输出:
(nothing)
Complete Response Object Reference