That was a test of Response.Clear
Example of using the Response Object
Cookies
To determine whether a cookie has keys, use the following syntax.
HasKeys = False
You can use an iterator to set cookie attributes.
For example, to set all of the cookies to expire on a particular date,
use the following syntax
(a successful test generates no output).
You can also iterate through the values of all the cookies in a collection,
or all the keys in a cookie.
However, if you try to iterate through the values for a cookie that does not have keys,
nothing will be returned. To avoid this, you can first use the .HasKeys syntax
to check whether a cookie has any keys. This is demonstrated in the following example.
(a successful test generates no output).
The following example demonstrates how you can set a value for a cookie
and assign values to its attributes.
(a successful test generates no output).
Buffer, Expires, ExpiresAbsolute, IsClientConnected, CacheControl
These parameters always return these values :
Current values :
Buffer = True
Response.Expires = NULL
ExpiresAbsolute = 12:00:00 AM
IsClientConnected = True
CacheControl = private
Attempt to change them
New values :
Buffer = True
Response.Expires = -12578640
ExpiresAbsolute = 5/31/2001 1:30:14 PM
IsClientConnected = True
CacheControl = public
Change them
New values :
Charset = ISO-LATIN-7
ContentType = text/html
Response.Status = 202 Accepted
Response.BinaryWrite - see Request object
Response.Redirect - see demo examples
Response.End would eliminate the following
Response.Write has been used throughout this test
Response.Flush is called after number 3 and Response.Clear is called after number 6.
1
2
3
7
8
9