Are Application_Error and Page_Error triggered by the same event?

Discussion in 'ASP .Net' started by Matt, Sep 1, 2005.

  1. Matt

    Matt Guest

    As the subject says... are Application_Error and Page_Error triggered by the
    same event? In other words, is there any error that could slip by
    Application_Error but be caught by Page_Error, or vise-versa? Or is it just
    a matter of handling the same exact thing in different scopes?
    Matt, Sep 1, 2005
    #1
    1. Advertising

  2. Matt

    Marina Guest

    If Page_Error does not clear the error, then Application_Error will get
    called. So Page_Error is kind of like a first line of defense. If it doesn't
    deal with the error, it will go to Application_Error.

    "Matt" <> wrote in message
    news:O$...
    > As the subject says... are Application_Error and Page_Error triggered by
    > the same event? In other words, is there any error that could slip by
    > Application_Error but be caught by Page_Error, or vise-versa? Or is it
    > just a matter of handling the same exact thing in different scopes?
    >
    Marina, Sep 1, 2005
    #2
    1. Advertising

  3. Matt

    Matt Guest

    But, is there any situation where having a Page_Error function will catch
    errors that an Application_Error would not catch?


    "Marina" <> wrote in message
    news:%...
    > If Page_Error does not clear the error, then Application_Error will get
    > called. So Page_Error is kind of like a first line of defense. If it
    > doesn't deal with the error, it will go to Application_Error.
    >
    > "Matt" <> wrote in message
    > news:O$...
    >> As the subject says... are Application_Error and Page_Error triggered by
    >> the same event? In other words, is there any error that could slip by
    >> Application_Error but be caught by Page_Error, or vise-versa? Or is it
    >> just a matter of handling the same exact thing in different scopes?
    >>

    >
    >
    Matt, Sep 1, 2005
    #3
    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. Tee
    Replies:
    2
    Views:
    798
  2. =?Utf-8?B?ZnVtcDc1?=

    How to find control from Page_Error event ?

    =?Utf-8?B?ZnVtcDc1?=, Aug 27, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,004
    Scott Allen
    Aug 27, 2004
  3. Carl Johansen
    Replies:
    2
    Views:
    6,276
    Brock Allen
    Jun 14, 2005
  4. Matt
    Replies:
    6
    Views:
    4,568
  5. Sam Solomon

    Page_Error event issue

    Sam Solomon, Nov 15, 2005, in forum: ASP .Net Web Controls
    Replies:
    5
    Views:
    932
    Keith Patrick
    Nov 16, 2005
Loading...

Share This Page