Use the Response object to send output information to the client. This includes features such as sending information directly to a browser, redirecting a browser to another URL address, or setting the value of a cookie.
Response provides collections, properties, and methods for the transfer of parameters.
Response Object Unique collection: List of attributes for a cookie collection
Collection |
Description |
Domain |
Specifies that only one domain (domain) can fetch the cookie and write only the property. |
Expires |
The expiration date of the cookie, in order to store the cookies on the client disk after the session is over, you must set the date. If the setting of this property does not exceed the current date, the cookie expires at the end of the task and writes only the property. |
Path |
Specifies that only a specific path can access the cookie. The default is the Path property of the application. |
Secure |
Used to set whether cookies are delivered in a secure channel. When a secure channel is not found on the HTTP home page, the cookie information will not be sent. |
HasKeys |
Specifies whether the cookie contains the keyword key, read-only property. |
Properties of the Response object
Property |
Description |
Buffer |
Indicates whether the page output is buffered |
CacheControl |
Determine if the proxy server can cache output generated by ASP |
Charset |
Add the name of the character set to the content type header |
Conternttype |
Specify the HTTP content type of the response |
Expires |
Specifies the time cached before the browser caches the page timeout |
ExpiresAbsolute |
Specify the date and time that the cached page in the browser timed out |
IsClientConnected |
Indicates whether the client is disconnected from the server |
Pics |
Add the value of the pics tag to the pics tag field of the caption of the response |
Status |
The value of the status row returned by the server |
Methods of response objects
Method |
Description |
AddHeader |
Set HTML caption from name to value |
AppendToLog |
Add a string after the requested Web server log entry |
Binraywrite |
Writes information to the current HTTP output and does not make any character set conversions |
Clear |
Clears any buffered HTML output |
End |
Stops processing the. asp file and returns the current result |
Flush |
Send buffered output now |
Redirect |
Sends the message that is being redirected to the browser, trying to connect to another URL |
Write |
Writes a variable as a string to the current HTTP output |
See the full set of ASP Getting started tutorials