ASP » Objects » Response

Version: Modified in version 3.0

The Response object sends information back to the user (browser).

Properties

Buffer

The Buffer property tells whether the page output being sent to the browser is buffered.

CacheControl

The CacheControl property determines whether a proxy server can cache the Active Server Page.

Charset

The Charset property appends the name of the character set being used to the content-type header contained in the response object.

ContentType

The ContentType property specifies the HTTP content type/subtype for the response header.

Expires

The Expires property specifies the length of time in minutes until a cached page on the browser expires.

ExpiresAbsolute

The ExpiresAbsolute property specifies a date and time when a cached page on the browser will expire.

IsClientConnected

The IsClientConnected property indicates whether the browser has disconnected from the server since the last Response.Write.

Status

The Status property specifies the value of the status line returned by the server.

Methods

AddHeader

Syntax: Response.AddHeader Name, Value

The AddHeader method adds a new named HTTP header with a specific value to the response.

AppendToLog

Syntax: Response.AppendToLog(String)

The AppendToLog method adds a string to the end of an entry in the Web server log for this request.

BinaryWrite

Syntax: Response.BinaryWrite(Data)

The BinaryWrite method sends specific data to the current HTTP output without any character conversions.

Clear

Syntax: Response.Clear

The Clear method clears (erases) any buffered HTML output.

End

Syntax: Response.End

The End method causes the web server to stop processing the script and to return the current results without processing the rest of the file.

Flush

Syntax: Response.Flush

The Flush method sends the contents of the buffer.

Redirect

Syntax: Response.Redirect(URL)

The Redirect method tries to connect the browser to a different URL.

Write

Syntax: Response.Write(Variant)

The Write method sends any specified variant to the browser.

Collections

CodePage

Syntax: response.codePage

This property allows you to set the code page for a response, which allows you to define how characters are encoded in different languages.

Cookies

Syntax: Response.Cookies(Name)[(Key)|.Attribute]=Value

The Cookies collection property allows you to add a cookie to a browser and add values to the cookie.

LCID

Syntax: response.LCID = [localeID]

This property can be used to get or set the Locale Identifier, which determines for specific geographic locales the formatting of dates, times, and currencies.