Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
2562
The Response Object
Introduction
The Response object can be used to send data to the user
from the Server. For example if you want to send a message to the server you
can use the Response.Write method. To clear the buffer you can just use the
Clear method. All methods and properties are listed in the below tables.
Example
The following example simply saves the string into a
variable and prints it out to the user.
<%
dim
mystring
mystring =
"Hello World"
Response.Write
mystring
%>
Output
Methods
Name:
Description:
AddHeader
This method adds a new html header.
AppendToLog
This method adds a string to the web server log file.
BinaryWrite
This method writes data to the current HTTP. It is useful
to write binary data.
Clear
This method clears any buffered HTML output.
End
This method stops the current processing of the asp page
and only returns the result before this method.
Flush
This method sends buffered output immediately.
Redirect
This method can be used to redirect the user to another
URL.
Write
This method can be used to write out a variable or text.
Properties
Name:
Description:
Buffer
This property can be use to indicate whether the page is
buffered.
CacheControl
This property can be used to set whether a proxy server
can cache the output generated by asp or not.
CharSet
This property can be used to append the name of the
character set to the content-type header.
CodePage
This property can be used to set the codepage for data in
the intrinsic objects for one response.
ContentType
This property can be used to specify the contenttype for
the response.
Cookies
This value can be used to set the cookie value.
Expires
This value specifies the length of the time before a
cached page expires.
ExpireAbsolute
This value can be used to specify the absolute date and
time when the cached page expires.
IsClientConnected
This value can be used whether the client is connected to
the server or not.
LCID (LocaleID)
This value can be used to specify how date, time and
currency are formatted for a specific geographical locale.
PICS
This value can be used to set the value for pics-label.
Status
This value can be used to specify the status line returned
by the server.