ASP Flush 方法

Manuel de référence de l'objet 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
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>

Sortie :

Je vais écrire du texte, mais je contrôlerai quand il sera
Le texte sera envoyé au navigateur.
Le texte n'a pas encore été envoyé. Je l'ai arrêté !
OK, laissez-le partir !

Manuel de référence de l'objet response