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.