How is the order of execution for HttpModules determined?

Posted by jessegavin on Stack Overflow See other posts from Stack Overflow or by jessegavin
Published on 2010-03-11T18:05:52Z Indexed on 2010/03/11 18:09 UTC
Read the original article Hit count: 252

Filed under:
|

Suppose that both FirstModule and SecondModule handle the Application_BeginRequest event. Will it execute in the order defined in the web.config?

<httpModules>
  <add type="MyApp.FirstModule, MyApp" name="FirstModule"/>
  <add type="MyApp.SecondModule, MyApp" name="SecondModule"/>
  <add type="OtherApp.OtherModule, OtherApp" name="OtherModule"/>
</httpModules>

Are there other ways that the order can be specified?

© Stack Overflow or respective owner

Related posts about httpmodule

Related posts about ASP.NET