Latest web development tutorials

ASP終了方法

レスポンスオブジェクトリファレンス 完全なレスポンスオブジェクトリファレンス

終了方法は、スクリプトの処理を停止し、現在の結果を返します。

注:でResponse.Bufferをtrueに設定すると、キャッシュのこのメソッドの出力は以下となります内容。あなたが任意のユーザーに任意の出力を返すようにしたくない場合は、最初Response.Clearを呼び出す必要があります。

文法

Response.End

<html>
<body>
<p>I am writing some text. This text will never be
<%
Response.End
%>
finished! It's too late to write more!</p>
</body>
</html>

输出:

I am writing some text. This text will never be


レスポンスオブジェクトリファレンス 完全なレスポンスオブジェクトリファレンス