468,249 Members | 1,494 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,249 developers. It's quick & easy.

HttpModules order

I noticed in my Http modules that all the BeginRequests are handled for each
Module before the EndRequests is handled (at least that seems to be the
case).

I have 2 HttpModules each with BeginRequests and EndRequests.

<httpModules>
<add
type="NFission.WebControls.ScrollKeeperModule,NFis sion.WebControls.ScrollKeeper"
name="ScollKeeperModule" />
<add type="HttpModuleExamples.CustomHttpModule, HttpModules"
name="CustomHttpModule" />
</httpModules>

I put a breakpoint on all the events and the order seems to be to do the
BeginRequest of the first Module listed in the <httpModules> section
(NFission) and then the BeginRequest of the next section
(HttpModuleExamples).

Then it goes back to the beginning of the list and does the EndRequest of
the first Module listed in the <httpModules> section (NFission) and then the
EndRequest of the next section (HttpModuleExamples)

I assume this would be important if you are filtering a page with your
modules.

Just curious if I've got this right and do the HttpHandlers work in the same
way?

Thanks,

Tom.
Mar 3 '06 #1
0 1046

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bogdan Fiedur | last post: by
11 posts views Thread by Markus Kling | last post: by
2 posts views Thread by tshad | last post: by
1 post views Thread by Anonieko | last post: by
2 posts views Thread by Mikael Syska | last post: by
3 posts views Thread by =?Utf-8?B?Tm9yZW1hYw==?= | last post: by
1 post views Thread by Samuel R. Neff | last post: by
5 posts views Thread by =?Utf-8?B?TUNN?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.