The ASP response object enables communication between the server and the client. It sends messages from the server as an output to the client. This object has several collections, methods, and properties associated with it.
Cookies
: We use this to set the value of cookies. If the cookies are not made, the cookies are created, and then the cookie values are set.
Write
: We use this to write to the output.
End
: We use this to stop script processing and return the result.
Clear
: We use this to clear if there is any output of type HTML.
Flush
: We use this to send the buffer HTML.
Redirect
: We use this to shift the user from one URL to another.
AddHeader
: We use this to add a new HTTP header to a response.
BinaryWrite
: We use this to write output directly on the screen.
AppendToLog
: This adds a string at the end of the server log.
ContentType
: We use this to set the content type of HTTP.
Status
: We use this to specify the line of status which is returned by the server.
Expires
: We use this to set the duration (in minutes) for a page to remain in the browser cache before it expires.
Charset
: We use this to append character-set to the content header in the object.
Pics
: We use this in the response header to append to the PICS label header.
Buffer
: We use this to specify whether or not the output is to be stored.
CacheControl
: This determines whether or not an ASP object-generated output can be cached by a server.
IsClientConnected
: This checks whether or not the client is connected to the server.
ExpiresAbsolute
:
We use this to set a date and time for a cache expiry in a browser.
Free Resources