ASP Clearメソッド
完全な Response オブジェクトリファレンス
Clear メソッドは、バッファリングされた HTML 出力をすべてクリアします。
注意:このメソッドはレスポンスのヘッダーをクリアできず、レスポンスの本文のみをクリアできます。
注意:response.Buffer が false の場合、このメソッドは実行時エラーを引き起こします。
構文
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 オブジェクトリファレンス その他の拡張