Sends the values to the client browser from the server based on the HTTP request.
Sets or returns the collection object of the cookie sent based on the received HTTP request.
Response.Cookies = [Value As String]
Collection object.
Write.
If the specified cookie does not exist it will be created. If the specified cookie is already existing, the old value will be reset to the new value. Response objects are always used to write the cookies.
See sample in Value property.
Indicates whether the page output should be buffered.
Response.Buffer
Boolean.
TRUE if the output is buffered and the server does not send the output to the client until all the NSP scripts associated with the current page are processed or Flush () or End () methods are called.
FALSE if there is no buffering and the server sends the output as and when it is processed.
Read/write.
This property cannot be set after the server has sent the request to the client browser. Hence, Response.Buffer should be the first line in any NSP file. By default buffer property is set to TRUE.
Sets or returns the specific value representing the cache control header to be PUBLIC or PRIVATE.
Response.CacheControl = [Value As String]
String. If this property is set to PUBLIC all the proxy servers will cache that page. If it is set to PRIVATE this page will be enabled only for private caching and all the proxy servers cannot cache this page.
Read/Write.
By default the Cachecontrol property is set to PRIVATE.
Appends the name of the specific character set (example: ISO-LATIN-7) to the content type header in the response object.
Response.CharacterSet = (Charactersetvalue As String)
String. specifies the character set of the page that is to be appended with the corresponding content type header.
Read/Write.
Sets or returns the HTTP content type for the Response object.
Response.ContentType = (ContentType As String)
String. The content type is given in the form of formatted type or subtype. The formatted type is always for the general content type category and the formatted subtype is for the specific content type category.***
Read/Write.
By default the content type is set as text/HTML.
Sets or returns the time (in minutes) after which the cache for that page in the browser will be cleared.
Response.Expires = (Time As Long)
Long.
Read/Write.
If the user returns to the page before the set expiry time, the cached version of that page will be displayed.
Sets or returns the date and the time at which the page cached in the browser will expire.
Response.ExpiresAbsolute =
(Datevalue As???),
(Timevalue As???)
????
Read/Write.
If the user returns to that before the specified date and time, the cached version will be displayed.
Adds or returns value to the pics label field in the response header.
Response.Pics = (Label As String)
String.
Read/Write.
Returns the value of the status line returned by the server. Status values are defined based on the HTTP specification.
Response.Status
String comprising of a 3 digit number indicating the status code and a brief explanation for that code.
Read/Write.
Appends a new HTTP header with the specified value to the Response object.
Response.AddHeader(
Name As String,
Value As String)
String representing the name of the new header file.
String representing the initial value stored in the header file.
Boolean. Returns TRUE if the header file is added successfully else returns FALSE.
The header cannot be deleted once it is added to the Response object.
Adds the specified string at the end of the log entry generated by the web server.
Response.AppendToLog(
LogEntry As String)
String representing the log details to be added to the end of the log entry generated by the web server.
Boolean. TRUE if the specified string is added successfully else returns FALSE.
The same string can be added multiple times by calling the AppendToLog method. The sting will be appended to the existing log entry.
Inserts a line break in the response object.
Response.Break()
None.
Boolean. Returns TRUE if the line break is inserted else returns FALSE.
Clears the buffered HTML output for the response object, when Response.Buffer () is set TRUE for that object.
Response.Clear()
None.
Boolean. Returns TRUE if the HTML buffer is cleared successfully.
This method erases only the response body and not the response header.
Intimates the web browser to stop processing the script and return the current result.
Response.End()
None.
Boolean. Returns TRUE if the script processing is stopped once this method is called else returns FALSE.
Sends the buffered output immediately.
Response.Buffer()
None.
Boolean. Returns TRUE if the buffered output is sent else returns FALSE.
This method will not work if Response.Buffer() is not called.
Intimates the web browser to connect to a different URL.
Response.Redirect(
URL As String)
String representing the uniform resource locator to which the browser is redirected.
Boolean. TRUE if the browser is redirected successfully else returns FALSE.
Writes a specified data to the current HTTP output sent to the client.
Response.Write(
Value As AnyType)
String representing the data to be added to the HTTP output.
Boolean. TRUE if the data is written to the HTTP output else returns FALSE.