Checking for errors accross website with include file ?

Checking for errors accross website with include file ?

am 07.03.2007 13:47:44 von davidgordon

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

Re: Checking for errors accross website with include file ?

am 07.03.2007 14:34:52 von Anthony Jones

"David" wrote in message
news:1173271664.417039.105180@j27g2000cwj.googlegroups.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.

Re: Checking for errors accross website with include file ?

am 07.03.2007 17:48:57 von davidgordon

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.

Re: Checking for errors accross website with include file ?

am 07.03.2007 23:25:17 von Anthony Jones

"David" wrote in message
news:1173286137.785056.56620@30g2000cwc.googlegroups.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.
>
>