Using Request and Response

ASP.NET is a redesigned and re-engineered evolution of ASP. Several metaphors from ASP were carried over to ASP.NET (although their implementations might be vastly different). Two such objects are the Request and Response introduced in the System.Web.UI.UserControl class.

These objects also exist in the System.Web.UI.Page class. The Request object is an instance of the HttpRequest class, and the Response object is an instance of the HttpResponse class. Basically, Request represents the HTTP values sent by the client, and Response represents the information sent by the server application back to the client.

We use the Request and Response relative to the properties and methods their classes expose and their respective ...

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.