ASP Getting Started tutorials-response Objects Overview

Source: Internet
Author: User
Tags character set list of attributes

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.