您还不是vip会员或者没有登录,无法进入学习,请登录后访问或者联系站长升级会员等级!
为了能给大家提供更好的服务和视频教程,本站VIP课程需要收取一定的学费,具体收费标准根据不同的班级课程和有效期长短有所不同,具体请咨询在线老师,多谢您对本站的支持!

8、 Clear 方法
定义和用法
Clear 方法清空任何已缓冲的 HTML 输出。
注释:此方法无法清除响应的头部,只能清空响应的正文。
注释:假如 response.Buffer 为 false,那么此方法会引起一个 run-time 错误。
实例
< % 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>
9、 End 方法:
定义和用法
End 方法停止对脚本的处理,并返回当前的结果。
注释:如果 Response.Buffer 被设置为 true ,此方法会输出缓存的内容。如果您不希望向用户返回任何任何输出,应该首先调用 Response.Clear 。
实例
<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>
10、 Flush 方法:
定义和用法
Flush 方法立即发送已缓存的 HTML 输出。
注释:假如 response.Buffer 为 false ,此方法会引起一个 run-time 错误
实例
< % Response.Buffer=true %>
< html> <body>
< p>I write some text, but I will control when the text will be sent to the browser.</p>
< p>The text is not sent yet. I hold it back!</p>
<p>OK, let it go!</p>
< % Response.Flush %>
< /body> </html>
上一讲:asp网站开发48:Write和BinaryWrite方法 | 下一讲:asp网站开发50:Request对象QueryString集合
![]() |
豫公网安备 41010202002486号 | ICP备案:豫ICP备18044432号-1 |