|
Problems and coding syntax
Unexpected errors can stop
Here you will find an error
This example demonstrates how
mistales can been in every
programs and your
class called CError that
to serve a custom page to
serverside application.
application coul be down
allows you to display a
users whenever a 404 error
Security of application is
immadiately. But 'On Error
custom dialog box with the
occurs as well as log the
very important. You should
Resume Next' funtcion help
option to have a detailed
user info such as ip,
need to understand what's
you to avoid to stop
message, a general message,
referer, request, agent into
going wrong in deep of an
unexpected errors on code.
and log the error in a file
a database.
apllication. This sample of
All you need to put this
for later reference. Also
code is an easy to use an
code after a code block.
uses some JavaScript and
error handling message
DHTML to allow the user to
writer. .
drag the dialog box around.
Date: Sep, 18 2006 Date: Sep, 06 2006 Date: Dec, 13 2001 Date: Jul, 25 2001 |
|
The author writes "It is
Everyone has seen an HTTP 404
The basic 404 error or file
important to know what is
error at some point. You
not found page serves two
going on with your site in
follow a link on a web page,
specific purposes. Firstly,
development and production.
and BOOM - File not found.
to alert the user that the
By implementing proper error
Perhaps the author spelt it
item they were expecting
logging, you can quickly
incorrectly, or the page was
is
not currently available.
track down errors, and
uploaded to the server by
Secondly, to alert
provide your team members
mistake. This tutorial'll
the
webmaster that a file
with enhanced error
show you how to handle this
is missing or a link is
information." This
404 error gracefully by
targeting something
tutorial describes how to
displaying your custom error
incorrectly. In order to
create a simple and
page, and send an email to
provide users with a page
effective logging system
yourself so the problem gets
that will show up
whenever
using the new ASP Error
fixed.
a 404 error occurs you need
object.
to change the settings on
your web server to target a
specific page or contact
your hosting company to do
this for you. Once setup,
the location of any file
that is requested and not
found in the server will be
made available as a query
string value and can be
outputted as a message to
the webmaster. Sending a
message to the webmaster can
be done a number of ways
this example demonstrates
the use of CDONTS.
Date: Mar, 01 2001 Date: Oct, 16 2000 Date: Jul, 12 2000 |