473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Are Application_Error and Page_Error triggered by the same event?

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?
Nov 19 '05 #1
2 2109
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" <md*******@nospam.com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
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?

Nov 19 '05 #2
But, is there any situation where having a Page_Error function will catch
errors that an Application_Error would not catch?
"Marina" <so*****@nospam.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
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" <md*******@nospam.com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
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?


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ahmad A. Rahman | last post by:
Hi Wizards, I have a data set and I bound it to 2 combobox (say ComboBox1 and ComboBox2) using ComboBox1.DataSource = MyDataSet and it worked well. That also means that when I select an item...
3
by: Kris Meher | last post by:
Hi My code Global.asax Application_Start() { // Code // There is possibility of Exception in above Code }
2
by: A.M | last post by:
Hi, I have the following code in Global.asax. Using a breakpoint, i can see that that all errors are being trapped in Application_Error and the event handler is being run properly. The problem...
4
by: Alex Nitulescu | last post by:
Hi. I read about Page_Error and Application_Error. However, I provoke an error in a page but still Page_Error won't run. This is all the code I have left in my page: ...
1
by: Buddy Ackerman | last post by:
I have a page where users upload files. I have the maxRequestLength set and have created a Page_Error procedure to trap the error when someone load a file that is larger than the maxRequestLength....
2
by: Carl Johansen | last post by:
I've been reading the O'Reilly "ASP.NET Cookbook" 1st edition (Kittel and LeBlond), and it makes a recommendation about exception handling that seems a bit strange. They say that, if you want to...
6
by: Matt | last post by:
Can anyone give me a good reason to use BOTH application scope Page_Error and the page scope Page_Error when trapping errors in a web application? Is there any real benefit to using the Page_Error...
12
by: Benny Raymond | last post by:
I understand that you would normally want to raise an event on the same thread so that your code blocks until the event has been dealt with... however i've run into a situation where I have a...
0
by: John Stevens | last post by:
I am using PIL to make images that I need to display in a sequence. The image needs to change when a an event happens from a serial port. I call the following function to display the image, but...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.