473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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 1366

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: R. Gregg Reed | last post by:
I'm trying to intergrate a cgi affiliate tracking system into a php website. When someone pays using PayPal it's supposed to direct them to one page if the payment is a success or another if...
1
by: Stymiee | last post by:
I'm writing a perl script to send out a joke of the day for my website. It is accessing a mysql db (I use php for the rest of the site. This will be a cron job so I figured perl would be better...
1
by: Hafeez | last post by:
I am having real trouble compiling this code http://www.cs.wisc.edu/~vganti/birchcode/codeHier/AttrProj.tgz The attachment shows errors when compiled using the current version of g++ in a...
6
by: RoSsIaCrIiLoIA | last post by:
Do you know how to write a self-checking program in standard C? Do I can think that if I write in a file.c static g="1234567"; in the file.exe (or file) there is in some place...
9
by: zolli | last post by:
Hi, I've been banging my head against this for a while now. Hoping someone here can shed some light on what's going on. On including stdlib.h in a file, I'm seeing the following errors: ...
16
by: lawrence k | last post by:
I've made it habit to check all returns in my code, and usually, on most projects, I'll have an error function that reports error messages to some central location. I recently worked on a project...
1
by: =?Utf-8?B?TWF5?= | last post by:
We are getting WebForm_DoPostBackWithOptions is not defined and other Java script errors related to WebResource.axd file. I narrowed down the problem and found out the cause but can't come up with...
8
by: MarkusJNZ | last post by:
Hi, I need to write some code to ensure that a website is still online. I was just going to write some code (Using System.NET webrequest) to retrieve the HTML from a website and if the length...
1
by: rpupkin77 | last post by:
Hi, I have written this script to run as a cron that will loop through a text file with a list of urls. It works fine for most of the links, however there are a number of urls which are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.