ASP Flush 方法

Podręcznik referencyjny obiektu response

定义和用法

The Flush method sends the cached HTML output immediately.

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

语法

Response.Flush

实例

<%
Response.Buffer=true
%>
<html>
<body>
<p>I write some text, but I will control when the
<p>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>

Wyjście:

Napiszę trochę tekstu, ale będę kontrolował, kiedy...
Tekst zostanie wysłany do przeglądarki.
Tekst jeszcze nie został wysłany. Zatrzymuję go!
OK, pozwól mu pójść!

Podręcznik referencyjny obiektu response