469,323 Members | 1,297 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Checking for errors accross website with include file ?

Hi,

Is there a general way of placing an 'error_check' include file into
my website, and put the include line onto all 'asp' pages. In the
event that any error occurs on any asp page or with the database,
instead of the user seeing the error on screen, they would be
redirected to a custom error page ?

Apprecaite your help
Thanks
David

Mar 7 '07 #1
3 1289

"David" <da*********@scene-double.co.ukwrote in message
news:11**********************@j27g2000cwj.googlegr oups.com...
Hi,

Is there a general way of placing an 'error_check' include file into
my website, and put the include line onto all 'asp' pages. In the
event that any error occurs on any asp page or with the database,
instead of the user seeing the error on screen, they would be
redirected to a custom error page ?

Apprecaite your help
Thanks
David
Create your custom error page and then use the Custom Errors tab on the Web
sites properties dialog to edit the 500;100 handler. I tend to use a URL
for an ASP page however you can also specify simple htm file.

Note you can use Server.GetLastError object in a handler page to embedded
some error details in the output. You could use a display:none DIV to place
these technical details and use a 'Display Technical Details' button on the
page.

Mar 7 '07 #2
This is fine if you have access to IIS admin, what can I do if my site
is hosted with a remote company ?

__________________________________________________ ______________________________________________

Create your custom error page and then use the Custom Errors tab on the Web
sites properties dialog to edit the 500;100 handler. I tend to use a URL
for an ASP page however you can also specify simple htm file.

Note you can use Server.GetLastError object in a handler page to embedded
some error details in the output. You could use a display:none DIV to place
these technical details and use a 'Display Technical Details' button on the
page.

Mar 7 '07 #3

"David" <da*********@scene-double.co.ukwrote in message
news:11*********************@30g2000cwc.googlegrou ps.com...
This is fine if you have access to IIS admin, what can I do if my site
is hosted with a remote company ?

Instruct the remote company that you want a specific page to used to handle
500;100 status codes on your site. If they aren't interested in making such
a change for you then find an alternative supplier for the service. It's
your site and you not asking for anything that could compromise the server.

__________________________________________________ __________________________
____________________
>
Create your custom error page and then use the Custom Errors tab on the
Web
sites properties dialog to edit the 500;100 handler. I tend to use a
URL
for an ASP page however you can also specify simple htm file.

Note you can use Server.GetLastError object in a handler page to
embedded
some error details in the output. You could use a display:none DIV to
place
these technical details and use a 'Display Technical Details' button on
the
page.


Mar 7 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by R. Gregg Reed | last post: by
1 post views Thread by Stymiee | last post: by
1 post views Thread by Hafeez | last post: by
6 posts views Thread by RoSsIaCrIiLoIA | last post: by
9 posts views Thread by zolli | last post: by
1 post views Thread by =?Utf-8?B?TWF5?= | last post: by
1 post views Thread by rpupkin77 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.