Response Object

You can use the Response object to send output to the client.

Syntax

Response.collection|property|method

Collections

Cookies

Specifies cookie values. Using this collection, you can set cookie values.

Properties

Buffer

Indicates whether page output is buffered.

ContentType

Specifies the HTTP content type for the response.

Expires

Specifies the length of time before a page cached on a browser expires.

ExpiresAbsolute

Specifies the date and time on which a page cached on a browser expires.

Status

The value of the status line returned by the server.

Methods

AddHeader

Sets the HTML header name to value.

AppendToLog

Adds a string to the end of the Web server log entry for this request.

BinaryWrite

Writes the given information to the current HTTP output without any character-set conversion.

Clear

Erases any buffered HTML output.

End

Stops processing the .asp file and returns the current result.

Flush

Sends buffered output immediately.

Redirect

Sends a redirect message to the browser, causing it to attempt to connect to a different URL.

Write

Writes a variable to the current HTTP output as a string.

See Also

Request Object


© Microsoft Corporation. All rights reserved.