|
||||||||||||||||||||||||||||||||||||||||||||||
|
|
ASP's Response object | |||||||||||||||||||||||||||||||||||||||||||||
|
Objective
|
Describe the ASP Response object.
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, Response.Write, 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. |
|||||||||||||||||||||||||||||||||||||||||||||
|
Characteristics of the Response object
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 has a single collection, Cookies, which is used to set cookie values, as we will explain in the next
lesson.
Most of the properties of the Response object are translated into HTTP headers (part of the browser-server data exchange); one of them, ContentType gives the browser information about the data or file being sent. |
||||||||||||||||||||||||||||||||||||||||||||||
| The next lesson describes how to use the Response object to write browser cookies. | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||