HttpModule or HttpHandler?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guzeppi

    #1

    HttpModule or HttpHandler?

    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?


  • John Timney \(MVP\)

    #2
    Re: HttpModule or HttpHandler?

    Modules get executed before handlers

    Regards

    John Timney (MVP)




    "Guzeppi" <guze@peppi.com wrote in message
    news:uBOubh3YIH A.4684@TK2MSFTN GP06.phx.gbl...
    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?
    >

    Comment

    • Michael Nemtsev [MVP]

      #3
      Re: HttpModule or HttpHandler?

      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


      Gif i want to create a redirection service, i.e. requests on a certain
      Gurl are redirected to other urls depending on the querystring
      Gparameters in the request, what is best to use in this case
      Ghttpmodule or httphandler? which gets executed first in the asp.net
      Gpipeline?
      G>


      Comment

      • Alvin Bruney [ASP.NET MVP]

        #4
        Re: HttpModule or HttpHandler?

        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
        -------------------------------------------------------



        "Guzeppi" <guze@peppi.com wrote in message
        news:uBOubh3YIH A.4684@TK2MSFTN GP06.phx.gbl...
        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?
        >

        Comment

        Working...