วิธีการล้าง ASP
❮ การอ้างอิงออบเจ็กต์การตอบสนองที่สมบูรณ์
วิธี Flush ส่งเอาต์พุต HTML ที่บัฟเฟอร์ทันที
หมายเหตุ:หากการตอบกลับบัฟเฟอร์เป็นเท็จ วิธีการนี้จะทำให้เกิดข้อผิดพลาดขณะทำงาน
ไวยากรณ์
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!
❮ การอ้างอิงออบเจ็กต์การตอบสนองที่สมบูรณ์