October 2016 Entries

HttpModule event execution order for multiple modules

I did some tests to find out the event execution order for multiple HttpMoudles in ASP.NET. Here is the what I found:When there are multiple HttpMoudles, and the modules are registered in Web.config, all event handlers are executed in the SAME order in which they were registered, except PreSendRequestHeaders and PreSendRequestContent which are in REVERSE order.Here is an example, suppose we have 3 modules registered in Web.config in following order. <modules> <add name="Module1" /> <add ......

Posted On Monday, October 17, 2016 11:06 AM | Comments (6)

Copyright © Changhong Fu

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski