Often you want to do some error handling in an ASP page.
The only way to do this in VBScript has traditionally been
by using On Error Resume Next, which leaves quite a bit to
be desired in terms of error handling, but there is one
little known feature that makes it a little more bearable.
Most people think that once you turn on On Error Resume Next,
you're stuck with it, but that's actually not the case. You
can tell the script to resume breaking on errors by using
the command On Error Goto 0.
While it's still not a great error handling system, this
makes it a little easier to live with if you're stuck using it.
If you have a tip you would like to submit, please send it to:
webmaster@asp101.com.