Easy Tutorial
❮ Prop Parentfolder Folder Prop Size File ❯

ASP Response Object


The ASP Response object is used to send output from the server to the user.


Try It Yourself - Examples

Writing Text with ASP

Formatting Text with HTML Tags in ASP

Redirecting the User to a Different URL

Displaying a Random Link

Controlling the Buffer

Clearing the Buffer

Terminating the Script During Processing and Returning the Result

Setting the Time Before the Page Expires in the Browser Cache

Setting the Expiration Date or Time for the Page Cache in the Browser

Checking if the User is Still Connected to the Server

Setting the Content Type

Setting the Character Set Name


Response Object

The ASP Response object is used to send output from the server to the user. Its collections, properties, and methods are described as follows:

Collections

Collection Description
Cookies Sets the value of a cookie. If the cookie does not exist, it creates the cookie and sets the specified value.

Properties

Property Description
Buffer Specifies whether to buffer the page output.
CacheControl Sets whether proxy servers can cache the output generated by ASP.
Charset Appends the name of the character set to the content-type header in the Response object.
ContentType Sets the HTTP content type of the Response object.
Expires Sets the time (in minutes) before the page expires in the browser cache.
ExpiresAbsolute Sets the date and time when the page cache expires in the browser.
IsClientConnected Indicates whether the client has disconnected from the server.
Pics Appends a value to the PICS label of the response header.
Status Specifies the value of the status line returned by the server.

Methods

Method Description
AddHeader Adds a new HTTP header and value to the HTTP response.
AppendToLog Adds a string to the end of the server log entry.
BinaryWrite Writes data to the output directly without any character conversion.
Clear Clears the buffered HTML output.
End Stops processing the script and returns the current result.
Flush Immediately sends the buffered HTML output.
Redirect Redirects the user to a different URL.
Write Writes the specified string to the output.
❮ Prop Parentfolder Folder Prop Size File ❯