Latest web development tutorials

ASP Flush 方法

Response 對象參考手冊 完整的Response對象參考手冊

Flush 方法立即發送已緩存的HTML 輸出。

注意:假如response.Buffer為false ,此方法會引起一個run-time錯誤。

語法

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>

输出:

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!


Response 對象參考手冊 完整的Response對象參考手冊