473,769 Members | 8,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Are Application_Err or and Page_Error triggered by the same event?

As the subject says... are Application_Err or and Page_Error triggered by the
same event? In other words, is there any error that could slip by
Application_Err or 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 2131
If Page_Error does not clear the error, then Application_Err or 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_Err or.

"Matt" <md*******@nosp am.com> wrote in message
news:O$******** ******@TK2MSFTN GP10.phx.gbl...
As the subject says... are Application_Err or and Page_Error triggered by
the same event? In other words, is there any error that could slip by
Application_Err or 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_Err or would not catch?
"Marina" <so*****@nospam .com> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
If Page_Error does not clear the error, then Application_Err or 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_Err or.

"Matt" <md*******@nosp am.com> wrote in message
news:O$******** ******@TK2MSFTN GP10.phx.gbl...
As the subject says... are Application_Err or and Page_Error triggered by
the same event? In other words, is there any error that could slip by
Application_Err or 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
11879
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 from ComboBox1, then SelectedItem in ComboBox2 will also changed respectively, as well. However, the problem is when I tried to bind the same dataset to a TextBox using:
3
6869
by: Kris Meher | last post by:
Hi My code Global.asax Application_Start() { // Code // There is possibility of Exception in above Code }
2
3024
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 is still it shows standard ASP.NET error screen. That means Response.Redirect ("genericerror.htm "); is being ignored. How can i fix this problem ? Thanks, Allan
4
6231
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: --------------------------------------------------------------------------------- Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
1
3712
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. The problem is that the page does not render. I either get a "Document Contains No Data" message or the browsers just sits there loading for what appears to al eternity. Here's the Page_Error procedure: Sub Page_Error(ByVal sender As...
2
2124
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 let some exceptions propagate up to Application_Error, you should include the following Page_Error on every page: Private Sub Page_Error(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Error Throw Server.GetLastError() End...
6
4570
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 if you are already capturing errors in Application_Error? Also, if you have any links to discussions about when to use which function it would be helpful.
12
2934
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 thread running that isn't my form thread and I want it to raise a custom event and continue going without waiting for that event to be handled... Is this at all possible?
0
916
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 then the application is waiting for an event. I need to return to the main code which is sending commands to a serial port and waiting for data to return then displaying the next chart. def display(R,G,B): img =...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.