Flush 方法立即发送缓冲区中的输出。如果未将 Response.Buffer 设置为 TRUE,则该方法将导致运行时错误。
(IIS 5.0中ASP 3.0页面缓冲是缺省打开的,在早期的版本中是缺省关闭的。)
假如有一个非常大的网页,或一个用ASP或别的服务器端代码和组件花费一定时间创建的网页,当其各部分完成时,我们能够分批刷新它们到客户:
1

2
Response.Flush
3

4
Response.Flush


2

3


4

但是Flush的内容至少要有256字节,如果数据少于256字节Response就认为不需要向客户端发送信息。