Open In App

ASP Flush Method

Improve
Improve
Like Article
Like
Save
Share
Report

The ASP Flush Method is used to send buffered Output immediately. This method returns a run-time error if the Response.Buffer set to False. 

Syntax:

Response.Flush 

Example: Below example illustrates the Flush method. The Response.Flush will not wait to complete the whole script to return the output to the client.

HTML




<!-- Flush method set to true -->
< % Response.Buffer=true% >
<html>  
   <body>
       
<p>GeeksforGeeks</p>
  
       
<p>Hello Geeks</p>
  
     <% Response.Flush%>
   </body>
</html>


Output:

GeeksForGeeks
Hello Geeks 

Last Updated : 31 Jul, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads