Click or drag to resize

Response Class

Acts as a wrapper for a response in a given context
Inheritance Hierarchy
SystemObject
  Dynamicweb.Environment.WebResponse

Namespace:  Dynamicweb.Environment.Web
Assembly:  Dynamicweb.Environment.Web (in Dynamicweb.Environment.Web.dll) Version: 3.2.1
Syntax
public class Response : IResponse

The Response type exposes the following members.

Constructors
  NameDescription
Public methodResponse
Initializes a new istance of the Dynamicweb.Environment.Web.Response class that wraps an instance of the HttpContextBase class
Top
Properties
  NameDescription
Public propertyContentType
Gets or sets the HTTP MIME type of the current response
Public propertyCookies
Gets the response cookie collection
Public propertyExpires
Gets or sets the number of minutes before a page that is cached on the client or proxy expires.
Public propertyIsClientConnected
Gets a value indicating if the client is connected to the server
Public propertyOutputStream
Gets the object that enables binary output to the outgoing HTTP content body
Public propertyStatus
Gets or sets the status value that is returned to the client
Public propertyStatusCode
Gets or sets the HTTP status code of the output that is returned to the client
Public propertyStatusDescription
Gets or sets the HTTP status message of the output that is returned to the client
Top
Methods
  NameDescription
Public methodAddHeader
Adds an HTTP header to the current response. This method is provided for compatibility with earlier versions of ASP.
Public methodBinaryWrite
Writes a string of binary characters to the output stream
Public methodClear
Clears all headers and content output from the current response
Public methodClearHeaders
Clears all headers from the current response
Public methodEnd
Sends all currently buffered output to the client, stops execution of the requested process, and raises the EndRequest event
Public methodFlush
Sends all currently buffered output to the client
Public methodIsValid
Returns a value indicating if the Underlying Context and Response is available and valid
Public methodRedirect(String)
Redirects a request to the specified URL
Public methodRedirect(String, Boolean)
Redirects a request to the specified URL and specifies whether execution of the current request should terminate
Public methodSetCookie
Updates an existing cookie in the cookie collection
Public methodWrite(Char)
Writes a character to an Response output stream
Public methodWrite(Object)
Writes the specified object to the response stream
Public methodWrite(String)
Writes the specified string to the response output string
Public methodWrite(Char, Int32, Int32)
Writes the specified array of characters to the response output stream
Top
See Also