HttpModule or HttpHandler?

  • Thread starter Thread starter Guzeppi
  • Start date Start date
G

Guzeppi

if i want to create a redirection service, i.e. requests on a certain url
are redirected to other urls depending on the querystring parameters in the
request, what is best to use in this case httpmodule or httphandler? which
gets executed first in the asp.net pipeline?
 
Hello Guzeppi,

I recommend to read this http://msdn2.microsoft.com/en-us/library/bb398986.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


G> if i want to create a redirection service, i.e. requests on a certain
G> url are redirected to other urls depending on the querystring
G> parameters in the request, what is best to use in this case
G> httpmodule or httphandler? which gets executed first in the asp.net
G> pipeline?
G>
 
Typically, you would use a module if you wanted to participate in the page
level events and a handler otherwise. For redirection, you can use a handler
but a module would work equally well. Read more here:
http://msdn2.microsoft.com/en-us/library/ms972974.aspx

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top