Chapter 17 Quick Reference


Chapter 17 Quick Reference

To

Do This

Create a custom module assembly

Create a new class implementing IHttpModule

Override Init

Override Disposet

Insert the module into the processing chain

Mention the module in the <httpModule> node of the application's Web.Config file

Handle application events in the module

Write a handler (within the module) for every event you want to handle

During the Init method, subscribe to the events by attaching the event handlers to the events

Override the application object in Global.asax file

Select Web site | Add New Item

Select Global Application Template from the templates

Insert your own code for responding to the application-wide events

Use the application's dictionary

Access the application object (it's always available from the current HttpContext). Use the indexer notation to access the dictionary




Microsoft ASP. NET 2.0 Programming Step by Step
Microsoft ASP.NET 2.0 Step By Step (Step By Step (Microsoft))
ISBN: B002KE5VYO
EAN: N/A
Year: 2005
Pages: 177

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net