-
Book Overview & Buying
-
Table Of Contents
Visual Basic Quickstart Guide
By :
In ASP.NET, the Response object is a server-side object that’s used to send output from the server back to the client (usually a web browser) as a response to the client’s request. The Response object provides methods and properties to set HTTP headers, send content (such as HTML, text, or binary data), manage cookies, and perform various other operations related to generating the response.
The Response object is automatically available in all ASP.NET page types, including ASPX pages, code-behind files, and custom handlers. You can use it directly within your ASP.NET code to customize the response that’s sent to the client.
Here are some standard methods and properties of the Response object in ASP.NET. Again, these are very similar to the Classic ASP Response methods and properties:
Write: The Write method, as in the Classic ASP Response object, sends output to the client, such as HTML content, text, or variable values