Inline alternitive to Page_Error?

C

Carlo Razzeto

Is there anyway to inline Page_Error type global error handling in an
ASP.Net webpage? Currently I work on a very large web system where the
entier web front end is contained in a single project file. I would like to
have inline Page_Error methods for certain pages, particularly some XML
exchanges I have in place for some AJAX functionality. Thx for any info,

Carlo
 
A

Alvin Bruney [MVP]

How would *inline page errors improve your situation? I marked inline page
errors because it doesn't really make sense to describe a page error as
inline. These are events that fire when an unhandled exception occurs at the
page level.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 
C

Carlo Razzeto

Alvin Bruney said:
How would *inline page errors improve your situation? I marked inline page
errors because it doesn't really make sense to describe a page error as
inline. These are events that fire when an unhandled exception occurs at
the page level.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin

I was thinking in terms of how, for instance, PHP allows you to do the
following at the top of your code file:

register_exception_handler( 'functionName' );

Once you have done this, while this page executes any unhandled exceptions
will then be sent to that method before being passed up the stack. At that
point the programmer could, for instance, based on the exception return an
appropriate error response through the defined XML structure. This is what I
was hoping to do in .Net. I can't do this in Page_Error as defined in
Global.asax because this would, obviously, create a situation where an
invalid response was being sent for all but the one page the method was
coded to handle.

Carlo
 
C

Carlo Razzeto

I was referring to the Page_Error or Application_Error methods defined in
Global.asax which allows a programmer to define a global error handling
routine.

Carlo
Alvin Bruney said:
How would *inline page errors improve your situation? I marked inline page
errors because it doesn't really make sense to describe a page error as
inline. These are events that fire when an unhandled exception occurs at
the page level.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Carlo Razzeto said:
Is there anyway to inline Page_Error type global error handling in an
ASP.Net webpage? Currently I work on a very large web system where the
entier web front end is contained in a single project file. I would like
to have inline Page_Error methods for certain pages, particularly some
XML exchanges I have in place for some AJAX functionality. Thx for any
info,

Carlo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,042
Latest member
icassiem

Latest Threads

Top