Application_Error and HTM/ASP pages?

  • Thread starter Thread starter Chris Ashley
  • Start date Start date
C

Chris Ashley

My web app has a mixture of ASPX, classic ASP and a few HTML pages. Is
there any way to get application_error in global.asax to handle
exceptions in my ASP pages? And 404's in my HTM pages?
 
Likely not easily as ASP and ASP.NET engines are distinct...

What we have done here is :
- an error page for ASP errors (here you could try to transmit this error to
ASP.NET so that it raised something there but I doubt it's worth)
- an error handler for ASP.NET errors

You can handle all your 404 errors using a single page as it it handled at
the IIS level... (Custom Errors and choose your 404 handler page, it will
trap all 404 errrors).
 
Back
Top