home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / Buffer_VBScript.asp < prev    next >
Text File  |  1997-10-25  |  953b  |  56 lines

  1. <% @Language=VBScript    %>
  2. <% Option Explicit        %>
  3.  
  4.  
  5. <%
  6.     ' Turn Buffering on (this must be done before anything is sent
  7.     Response.Buffer = TRUE
  8. %>
  9.  
  10.  
  11. <HTML>
  12.     <HEAD>
  13.         <TITLE>This is Bogus HTML</TITLE>
  14.     </HEAD>
  15.  
  16.     <BODY bgcolor="white" topmargin="10" leftmargin="10">
  17.         
  18.         <!-- Display Header -->
  19.  
  20.         <font size="4" face="Arial, Helvetica">
  21.         <b>You shouldn't see this!!</b></font><br>   
  22.  
  23.     </BODY>
  24. </HTML>
  25.  
  26.  
  27. <%
  28.     ' Clear everything already printed
  29.     Response.Clear
  30. %>
  31.  
  32.  
  33. <HTML>
  34.     <HEAD>
  35.         <TITLE>Buffering Example</TITLE>
  36.     </HEAD>
  37.  
  38.     <BODY bgcolor="white" topmargin="10" leftmargin="10">
  39.         
  40.         <!-- Display Header -->
  41.  
  42.         <font size="4" face="Arial, Helvetica">
  43.         <b>Buffering Example</b></font><p>   
  44.  
  45.         This html was buffered on the server before it was sent.
  46.  
  47.     </BODY>
  48. </HTML>
  49.  
  50.  
  51. <%
  52.     ' Send the new html
  53.     
  54.     Response.Flush
  55. %>
  56.