|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
The Responseobject returns the values that the server processed to the client browser in response to an HTTP request. The following table lists the level of support for the Responseobject.
|Response method or property||Windows CE implementation|
|Buffer||(Property) Fully supported (see Notes).|
|CacheControl||Not supported. Use AddHeaderwith name ="Cache-Control".|
|Cookies||See Collection Objects.|
|PICS||Not supported. Use AddHeaderwith name = "PICS".|
|Clear||Fully supported (see Notes).|
|End||Fully supported (see Notes).|
|Flush||Fully supported (see Notes).|
|Redirect||Fully supported (see Notes).|
Notes The Bufferproperty indicates whether to buffer page output. When page output is buffered, the server does not send a response to the client browser until all of the server scripts on the current page have been processed, or until the Flushor Endmethod has been called.
If the current .asp file has buffering set to TRUE and does not call the Flushmethod, the server honors Keep-Alive requests that are made by the client browser. Avoiding the call to the Flushmethod saves time because the server does not have to create a new connection for each client browser request.
If buffering is turned off, calls to the Clear, End, Flush, or Redirectmethod fail, just as on IIS. When buffering is off, response headers must be added at the very top of the ASP page, before any text is sent to the client browser.
Windows CE does not support some of the advanced header-management functions that are available on IIS, such as CacheControl. To set one of these values, call the Response.AddHeadermethod with the name and value. For example,
<% Response.CacheControl = "private" %>
can be implemented on Windows CE with this call:
<% Response.AddHeader("Cache-control","private") %>
If an advanced header management function such as Response.CacheControlis called repeatedly on IIS, only the value that was set in the last call to the method is sent to the client browser. On Windows CE ASP, calls to the Response.AddHeadermethod append data to the end of the headers and do not overwrite any of the existing headers of the same name.
Last updated on Friday, April 02, 2004