ASP วิธีการล้าง
เคลียร์วิธีการแสดงผล HTML ใด ๆ ที่ได้รับการบัฟเฟอร์
หมายเหตุ: วิธีการนี้ไม่ล้างหัวการตอบสนองของร่างกายเพียงการตอบสนองที่ว่างเปล่า
หมายเหตุ: หาก Response.Buffer เป็นเท็จแล้ววิธีนี้จะทำให้เกิดข้อผิดพลาดในการทำงาน
ไวยากรณ์
response.Clear
ตัวอย่าง
<%
response.Buffer=true
%>
<html>
<body>
<p>This is some text I want to send to the user.</p>
<p>No, I changed my mind. I want to clear the text.</p>
<%
response.Clear
%>
</body>
</html>
输出:
(nothing)
response.Buffer=true
%>
<html>
<body>
<p>This is some text I want to send to the user.</p>
<p>No, I changed my mind. I want to clear the text.</p>
<%
response.Clear
%>
</body>
</html>
输出:
(nothing)
อ้างอิงวัตถุตอบสนองสมบูรณ์