Latest web development tutorials

ASP ล้างวิธี

อ้างอิงวัตถุการตอบสนอง อ้างอิงวัตถุตอบสนองสมบูรณ์

ล้างวิธีส่งผล HTML Buffered ทันที

หมายเหตุ: หาก 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>

输出:

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!


อ้างอิงวัตถุการตอบสนอง อ้างอิงวัตถุตอบสนองสมบูรณ์