Phương pháp xả ASP


❮ Tham chiếu đối tượng phản hồi hoàn chỉnh

Phương thức Flush gửi đầu ra HTML được đệm ngay lập tức.

Lưu ý: Nếu response.Buffer sai, phương pháp này sẽ gây ra lỗi thời gian chạy.

Cú pháp

Response.Flush

Thí dụ

<%
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!

❮ Tham chiếu đối tượng phản hồi hoàn chỉnh