The complement to the application and page events is the context, which is provided by ASP.NET. The available contexts allow you to do the following:
The ASP.NET contexts are request, response, and server. Let’s see how they can be put to use.
You can get details of the request made by the client through the
Page.Request property, which returns an instance of the
System.Web.HttpRequest class. To demonstrate this class, let’s make some changes to the
Default.aspx web page in the example project, as shown in Listing 5-8 ...