On Wed, 12 Jan 2005 12:10:58 +0200, "Eitan"
<no_spam_please@nospam_please.com> wrote:
>Can I trap on specific label, and not after the error occured.
>(I know : on error goto my_label ...
>but this does not work in ASP pages)
Actually, you can never trap on an error that doesn't occur.
Use the same setup, and either handle the error instead of
Response.Write'ing it out, or call a function to handle the error and
return whatever you need to continue processing. You can even handle
errors based on the error number.
I used to have a link to a document on either ASPFaq or 4GuysFromRolla
about error trapping, but it's not in my links (or I saved the link on
another system...). A search on both doesn't really turn up what I
remmbered, but there's info out there.
Jeff