title: "[How Do I:] Handle Application Events using an HttpModule? | Microsoft Docs"
author: rick-anderson
description: "Learn how to create an HttpModule that handles application events during the processing of a page request. The sample module will write information to a log..."
[How Do I:] Handle Application Events using an HttpModule?
====================
by [Chris Pels](https://twitter.com/chrispels)
Learn how to create an HttpModule that handles application events during the processing of a page request. The sample module will write information to a log file at various points in the page lifecycle. We also see how the HttpModule is configured for use in a sample web site.
[▶ Watch video (19 minutes)](https://channel9.msdn.com/Blogs/ASP-NET-Site-Videos/how-do-i-handle-application-events-using-an-httpmodule)