AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Introducing ASP.NET Page Modules : Paulo Morgado

Friday, February 27 2009

From the need to handle events in every rendered page and not wanting to pay the penalties (network usage and server load) of frequent client redirects, I came up with the concept of Page Modules. Page Modules enables you to handle every event in the Page Life Cycle of any page as well as its creation and release. Each Page Module has an Init method that is called when the Page Handler Factory with Modules is initialized and each Page Module can subscribe to two events: PageCreated and PageReleasing. In the PageCreated event arguments there are properties that expose the Page being created, the Context of the HTTP request, the HTTP data transfer method (GET or POST) that the client uses, the virtual path to the requested resource and the physical application path of the requested page. Using the reference to the page being created, you can subscribe to all events in the Page Life Cycle of the page being created....

Read More:
Introducing ASP.NET Page Modules : Paulo Morgado
Also See:
Implementing Table and Stored Procedure Profile Providers for ASP.NET 2.0 : Peter Bromberg
How To Capture Web Events In log4net : Gabe Wishnie
Support Voice: SSL Termination and ASP.NET : Jerry Orman
Building an ASP.NET Note Taking Application : John Peterson
Keep Sites Running Smoothly By Avoiding These 10 Common ASP.NET Pitfalls : Jeff Prosise

Post your comment

Comment