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

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

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

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. Stoyan
    Replies:
    0
    Views:
    564
    Stoyan
    Jul 10, 2003
  2. Steve Pan
    Replies:
    1
    Views:
    495
    Fred W
    Nov 6, 2003
  3. John Sturgeon

    DataGrid SortCommand event not triggered

    John Sturgeon, Nov 26, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    689
    John Sturgeon
    Dec 2, 2003
  4. Chris Leffer

    Application_error event and Windows 2003

    Chris Leffer, Aug 9, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    592
    Jim Cheshire [MSFT]
    Aug 10, 2004
  5. =?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,147
    Scott Allen
    Aug 27, 2004
  6. Carl Johansen
    Replies:
    2
    Views:
    6,828
    Brock Allen
    Jun 14, 2005
  7. Matt
    Replies:
    6
    Views:
    5,117
  8. Sam Solomon

    Page_Error event issue

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