Open In App

ASP Flush Method

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.




<!-- 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 
Article Tags :