Whereas HttpModules are designed to participate in the processing of a request, HttpHandlers are designed to be the endpoint for the processing of a request. As mentioned earlier, an HttpHandler provides a way to define new page processors that handle new types of programming models. Table 8.1 shows the HttpHandlers provided by ASP.NET.

Table 8.1. Built In ASP.NET HttpHandlers
HttpHandler Purpose
PageHandlerFactory Processes .aspx pages.
WebServiceHandlerFactory Processes .asmx XML Web services.
HttpForbiddenHandler Yields an error message indicating that a type of page is not in service. By default, all .asax, .vb, .cs, .ascx, .config, .csproj, .vbproj, and .webinfo files are mapped to this in machine.config.

Get C#® Developer's Guide to ASP.NET, XML, and ADO.NET now with O’Reilly online learning.

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