The manual Page
Version française
     Method Response.Clear  
[ index | glossary | news | downloads | links ]
 
  introduction to ASP
writting in ASP
ASP variables
the ASP 3.0 objects
the object Request
   .TotalBytes
   .ClientCertificate
   .Cookies
   .Form
   .QueryString
   .ServerVariables
   .BinaryRead
the object Response
   .Status
   .Cookies
   .AddHeader
   .AppendToLog
   .BinaryWrite
   .Clear
   .End
   .Flush
   .Redirect
   .Write
 
news
glossary
downloads
 
guest book
credits
contact
 
 
research
 
last update
25/02/2002
Valid HTML 4.0!
Valid CSS!
Hit-Parade
Measure your audience

Synopsis

Response.Clear

This method clears the output buffer; the actual content of the buffer when this method is called will be lost for good. If the output buffer has not previously been activated (Response.Buffer has been set to True), a runtime error occurs.

Sometimes, we use Response.Clear with the method Response.Redirect in order to redirect the browser to another page or create dynamic content within the same ASP script.

See also Response.Flush.

Example

In this example, only " to you" is returned to the client:

<%
Response.Buffer = True
...
Response.Write("From me")
Response.Clear
Response.Write(" to you")
%>

printable format printable format



Copyright © 2000-2001 themanualpage.org - This site is submissive to the terms of the GNU GPL and FDL licences.