404's, aspxerrorpath, and querystring variables

Discussion in 'ASP .Net' started by news.microsoft.com, Jun 29, 2004.

  1. I'm trying to create a 404 handler that can record the *exact* URL that
    caused the 404 to occur.

    When I turn on custom error handling in the web.config, ASP.NET successful
    redirects the 404 to my custom page (404.aspx), but the aspxerrorpath
    querystring variable only shows what page the request went to, not the
    querystring variables passed to that page.

    I need the *complete* URL that causes the error, including the querystring
    arguments.

    How can I obtain this?

    Thanks,
    RMD
     
    news.microsoft.com, Jun 29, 2004
    #1
    1. Advertising

  2. I have since discovered that this is not possible.

    RMD

    "news.microsoft.com" <rmd@ask_me_if_you_want_it.ok> wrote in message
    news:...
    > I'm trying to create a 404 handler that can record the *exact* URL that
    > caused the 404 to occur.
    >
    > When I turn on custom error handling in the web.config, ASP.NET successful
    > redirects the 404 to my custom page (404.aspx), but the aspxerrorpath
    > querystring variable only shows what page the request went to, not the
    > querystring variables passed to that page.
    >
    > I need the *complete* URL that causes the error, including the querystring
    > arguments.
    >
    > How can I obtain this?
    >
    > Thanks,
    > RMD
    >
    >
     
    news.microsoft.com, Jul 21, 2004
    #2
    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. Jelle Huygen

    Aspxerrorpath Querystring

    Jelle Huygen, Mar 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    8,489
    eggsarebad
    Nov 16, 2009
  2. julien

    [ASP][C#] pb with aspxerrorpath

    julien, Mar 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    903
    julien
    Mar 16, 2005
  3. Jonathan Folland
    Replies:
    2
    Views:
    1,656
    Jonathan Folland
    Mar 17, 2005
  4. Replies:
    1
    Views:
    2,172
    mandip_kanjiya
    Mar 27, 2010
  5. Scott McNair

    Pulling the querystring off a 404 redirect

    Scott McNair, Apr 12, 2004, in forum: ASP General
    Replies:
    10
    Views:
    544
    Aaron Bertrand [MVP]
    Apr 13, 2004
Loading...

Share This Page