Chapter 19. HTTP Handlers

After completing this chapter, you will be able to

  • Recognize the role of custom handlers in ASP.NET.

  • Write custom handlers.

  • Write just-in-time compiled custom handlers.

  • Configure your site to include your custom handler.

This chapter covers writing custom HTTP handlers. Chapter 2 describes the ASP.NET pipeline. Remember that the endpoint of all requests handled by ASP.NET is always an implementation of IHttpHandler.

ASP.NET includes several classes capable of handling requests in the most common ways. For example, the Page class handles requests by interpreting the query strings and returning meaningful user interface (UI)-oriented HTML. The Service class interprets incoming query strings as method calls and processes them ...

Get Microsoft® ASP.NET 4 Step by Step 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.