trap exceptions by ASP pages

  • Thread starter Thread starter Eitan
  • Start date Start date
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 :)
 
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 />
 
Back
Top