ASP Flush Method

response Object Reference Manual

Definition and Usage

The Flush method sends the cached HTML output immediately.

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

Syntax

Response.Flush

Example

<%
Response.Buffer=true
%>
<html>
<body>
<p>I write some text, but I will control when the
<p>The text will be sent to the browser.</p>
<p>The text is not sent yet. I hold it back!</p>
<p>OK, let it go!</p>
<%
Response.Flush
%>
</body>
</html>

Output:

I write some text, but I will control when the
The text will be sent to the browser.
The text has not been sent yet. I am holding it back!
OK, let it go!

response Object Reference Manual