As we have described previously, the browser-server dialog consists of requests from the client and responses from the server.
The server replies to browser requests and sends data back to the browser through ASP's Response object.
You have already used one method of this object,
in an earlier lesson to write the contents of variables and HTML Form fields byte-by-byte to your browser.
You can write larger amounts of data at one time by using output buffering
As you can see from the summary below, the Response object has more features than the Request object. The features that will be most useful to you in creating Web applications will be explained in the remaining lesson in this module.
|The Response Object|
|Set cookie values|
|Should the page output be buffered?|
|May proxy servers cache the output generated by ASP?|
|Add the name of the character set to the content-type header.|
|Identify the content type for the response.|
|How long before a page cached on the browser should expire?|
|When (date and time) should a page cached on the browser expire?|
|Is the client still connected to the server?|
|Add the value of a PICS (for content rating) label.|
|This is the status line sent by the server.|
|Add a new HTTP header, and set the name to value.|
|Annotate the Web server log entry for the original request with a string.|
|Send the data without any character-set conversion.|
|Erase all unflushed HTML output buffered so far.|
|Quit processing the ASP file, and return the current result.|
|Send any buffered output right now.|
|Redirect the browser to connect to a different URL than the one requested.|
|Write the value of an ASP variable to the current output.|