当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Clear 方法

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP Clear 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 322 ::
收藏到网摘: n/a

The Clear method clears any buffered HTML output.
使用Clear(清除)指令是用来清除所有被缓冲的HTML结果的。

Note: This method does not clear the response headers, only the response body.
注意:这个指令不能清除Response标题,只能清除Response本身的内容。

Note: If response.Buffer is false, this method will cause a run-time error.
注意:如果Response.Buffer设置为False,那么使用这个指令将会导致运行时间上的错误。

Syntax
语法

response.Clear

Examples
举例

<%
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>

Output:

(nothing)

 

评论 (0) All

登陆 | 还没注册?