Buffered Output in ASP

Buffered Output in ASP


In the previous example all the web pages content was sent to the browser immediately. Buffering can be used to store information for a period of time or upon response to an event before releasing the data. Note that


<% @LANGUAGE = VBScript %>
<% Option Explicit %>

<%
Response.Buffer = TRUE
Response.Expires = 60
%>
<HTML>
<BODY>
Hello User.<BR>
You are seeing the present hours' message.
<%
Response.Clear
Response.Expires = 0
%>
<HTML>
<BODY>
This is the fast expiring message.
<%
Response.Flush
%>
</BODY>
</HTML>
<%
Response.End
%>
This line will never be sent to the browser.