最新的Web开发教程
 

ASP flush方法


<完全反应对象参考

Flush方法立即发送缓冲的HTML输出。

Note:如果将response.buffer是假的,这种方法会导致运行时错误。

句法

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>

Output:

I write some text, but I will control when the
text will be sent to the browser.

The text is not sent yet. I hold it back!

OK, let it go!

<完全反应对象参考