Home All Groups Group Topic Archive Search About

trap exceptions by ASP pages

Author
12 Jan 2005 1:41 PM
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 :)

Author
12 Jan 2005 2:56 PM
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 />

--
Philip Q
Microsoft MVP [ASP.NET]

Show quote
"Eitan" <no_spam_please@nospam_please.com> wrote in message
news:OMFEswK%23EHA.1124@TK2MSFTNGP10.phx.gbl...
> 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 :)
>
>
>

AddThis Social Bookmark Button