Determine request URL when implementing IHttpModule

Discussion in 'ASP .Net' started by Fernando Gómez, Jul 16, 2009.

  1. Hello all. I have a class that implements the IHttpModule interface. In the
    Init method, I subscribe to HttpApplication.PostRequestHandlerExecute, where
    I do some processing for my web application. However, this does not apply to
    one particular page, and thus I need to know the URL of the request.

    I tried with HttpApplication.Request.Url, but it throwed an HttpException.
    Reading the documentation, I found that this happens whenever Request is not
    available (i.e. it is null).

    So my question is, in this scenario, how could I determine the page being
    requested?

    Thanks in advance.
     
    Fernando Gómez, Jul 16, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    8
    Views:
    2,247
    John Saunders
    Dec 30, 2004
  2. Umut Tezduyar
    Replies:
    0
    Views:
    299
    Umut Tezduyar
    Nov 3, 2005
  3. river13
    Replies:
    0
    Views:
    372
    river13
    Nov 14, 2006
  4. Kevin
    Replies:
    19
    Views:
    2,744
    George Ter-Saakov
    Jan 11, 2008
  5. mark.norgate
    Replies:
    1
    Views:
    587
    mark.norgate
    Mar 31, 2009
Loading...

Share This Page