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

Global.asax? Use HttpModules Instead! : Karl Seguin

Sunday, September 07 2008

HttpModules are incredibly easy to explain, so this will hopefully be a short-ish post. Simply put, HttpModules are portable versions of the global.asax. So, in your HttpModule you'll see things like BeginRequest, OnError, AuthenticateRequest, etc. Actually, since HttpModules implement IHttpModule, you actually only get Init (and Dispose if you have any cleanup to do). The Init method passes in the HttpApplication which lets you hook into all of those events. For example, I have an ErrorModule that I use on most projects...

Read More:
Global.asax? Use HttpModules Instead! : Karl Seguin
Also See:
Code Snippets in Visual Studio 2005 : Patrick Santry
A Navigation System Comes Easily : Xun Ding
Client Callback in a Website Registration Page : Omer Kamal
Inversion of Control and Dependency Injection with Castle Windsor Container - Part IV : Simone Busoli
Make Your ASP.NET Mobile Forms Timer-Refresh and Autoredirect : Peter Bromberg

Post your comment

Comment