ASP Clear 方法
Clear 方法清空任何已緩衝的HTML 輸出。
注意:此方法無法清除響應的頭部,只能清空響應的正文。
注意:假如response.Buffer為false,那麼此方法會引起一個run-time錯誤。
語法
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)
完整的Response對象參考手冊