trap exceptions by ASP pages

E

Eitan

Hello,
I want that every error in every asp/javascript/ etc... will trappped to a
central asp page (not dotnet), which I declare on my site.

Also :
suppose I have a dotnet site platformed - is the declaration for that may be
the same for not dotnet declarations.

Thanks :)
 
P

Philip Q [MVP]

Each of those is handled differently -
You cannot capture JavaScript errors except on the client-side as this is
where it is processed.
You can set the default error page for ASP errors (500) in IIS.
You can se the error page redirects for ASP.NET using the <customErrors> and
<error> elements in web.config. These can redirect to any page you want
eg.
<customErrors defaultRedirect="somePage.asp mode="RemoteOnly />
 

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

Top