Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpResponse.Flush Method

Sends all currently buffered output to the client.

[Visual Basic]
Public Sub Flush()
[C#]
public void Flush();
[C++]
public: void Flush();
[JScript]
public function Flush();

Exceptions

Exception Type Condition
HttpException The cache is flushed after the response has been sent.

Remarks

Forces all currently buffered output to be sent to the client. Flush can be called multiple times during request processing.

Example

The following example flushes the buffer to the output stream.

[Visual Basic] 
Response.Flush()
    

[C#] 
Response.Flush();
    

[C++] 
Response->Flush();
    

[JScript] 
Response.Flush()
    

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.