6.3. ASP.NET applications

The ASP.NET application is the collection of all files, pages, handlers, modules, and code within the scope of the virtual directory and its subdirectories on a single web server. In this section, we will look at the main classes that comprise the ASP.NET application – the HTTPApplication, HTTPContext, HTTPRequest, HTTPResponse, and HTTPServerUtility classes. We will start with the HTTPApplication class, which defines the basic attributes of the ASP.NET application.

HTTPApplication class

The HTTPApplication class is the direct descendant of the Object class. It implements four interfaces – IHttpAsyncHandler, IHttpHandler, IComponent, and IDisposable.

The IHttpAsyncHandler interface declares two methods that should ...

Get A Programmer's Guide to .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.