Application_Error and HTM/ASP pages?

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?
 
P

Patrice

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

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

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top