What happens if more than one HttpHandler is registered for a file type?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default What happens if more than one HttpHandler is registered for a file type?

    Okay, I need to create an HttpHandler that will process all requests to the
    server so that I can perform special logging. What happens if there are
    more than one handler registered with the same file extension? For
    instance, someone accesses a .aspx page. Normally that would only be
    handled by normal handler. What I want to do is register a handler for this
    extension, but also allow the normal handler to process it after I am done.
    I won't be writing anything to the response stream, I just want code to run
    on each request. Will this cause problem?


    Peter Rilling Guest

  2. Similar Questions and Discussions

    1. authentication for httphandler
      Hi, I have several httphandlers in a web app. I need to set up a very simple authentication system for users to access these handlers. The...
    2. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
    3. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type ?
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
    4. HttpHandler not working :-)
      I have a simple HttpHandler //-- using System.Web; namespace Acme { public class SimpleHandler : IHttpHandler { public void...
    5. file name of file that reference to type glob points to
      Hey all. This is probably a elementary question, but I can't seem to be able to find a builtin function or combination of functions that will let...
  3. #2

    Default Re: What happens if more than one HttpHandler is registered for a file type?

    Why don't you just create an inherited Page class that does your task with
    each Request, and then inherit that for all of your Pages?

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Complex things are made up of
    lots of simple things.

    "Peter Rilling" <peter@nospam.rilling.net> wrote in message
    news:eD9J30mWDHA.3612@tk2msftngp13.phx.gbl...
    > Okay, I need to create an HttpHandler that will process all requests to
    the
    > server so that I can perform special logging. What happens if there are
    > more than one handler registered with the same file extension? For
    > instance, someone accesses a .aspx page. Normally that would only be
    > handled by normal handler. What I want to do is register a handler for
    this
    > extension, but also allow the normal handler to process it after I am
    done.
    > I won't be writing anything to the response stream, I just want code to
    run
    > on each request. Will this cause problem?
    >
    >

    Kevin Spencer Guest

  4. #3

    Default Re: What happens if more than one HttpHandler is registered for a file type?

    This sounds like you want an HttpModule, not an HttpHandler.
    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]

    "Peter Rilling" <peter@nospam.rilling.net> wrote in message
    news:eD9J30mWDHA.3612@tk2msftngp13.phx.gbl...
    > Okay, I need to create an HttpHandler that will process all requests to
    the
    > server so that I can perform special logging. What happens if there are
    > more than one handler registered with the same file extension? For
    > instance, someone accesses a .aspx page. Normally that would only be
    > handled by normal handler. What I want to do is register a handler for
    this
    > extension, but also allow the normal handler to process it after I am
    done.
    > I won't be writing anything to the response stream, I just want code to
    run
    > on each request. Will this cause problem?
    >
    >

    John Saunders Guest

  5. #4

    Default Re: What happens if more than one HttpHandler is registered for a file type?

    Because my team does not control the pages or any of the site content for
    that matter. Also, I need to perform special logging for static content as
    well (e.g. gif, jpg, css, etc.)


    "Kevin Spencer" <kevin@takempis.com> wrote in message
    news:#IpCudoWDHA.1620@TK2MSFTNGP12.phx.gbl...
    > Why don't you just create an inherited Page class that does your task with
    > each Request, and then inherit that for all of your Pages?
    >
    > --
    > HTH,
    >
    > Kevin Spencer
    > Microsoft MVP
    > .Net Developer
    > [url]http://www.takempis.com[/url]
    > Complex things are made up of
    > lots of simple things.
    >
    > "Peter Rilling" <peter@nospam.rilling.net> wrote in message
    > news:eD9J30mWDHA.3612@tk2msftngp13.phx.gbl...
    > > Okay, I need to create an HttpHandler that will process all requests to
    > the
    > > server so that I can perform special logging. What happens if there are
    > > more than one handler registered with the same file extension? For
    > > instance, someone accesses a .aspx page. Normally that would only be
    > > handled by normal handler. What I want to do is register a handler for
    > this
    > > extension, but also allow the normal handler to process it after I am
    > done.
    > > I won't be writing anything to the response stream, I just want code to
    > run
    > > on each request. Will this cause problem?
    > >
    > >
    >
    >

    Peter Rilling Guest

  6. #5

    Default Re: What happens if more than one HttpHandler is registered for a file type?

    Two additional points.
    1) I need to be able to trap requests for all file types, including ASP,
    GIF, CSS, etc.
    2) I need to be able to access the user's authenticated identity for that
    page request.

    "Peter Rilling" <peter@nospam.rilling.net> wrote in message
    news:eD9J30mWDHA.3612@tk2msftngp13.phx.gbl...
    > Okay, I need to create an HttpHandler that will process all requests to
    the
    > server so that I can perform special logging. What happens if there are
    > more than one handler registered with the same file extension? For
    > instance, someone accesses a .aspx page. Normally that would only be
    > handled by normal handler. What I want to do is register a handler for
    this
    > extension, but also allow the normal handler to process it after I am
    done.
    > I won't be writing anything to the response stream, I just want code to
    run
    > on each request. Will this cause problem?
    >
    >

    Peter Rilling Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139