This is not an all or nothing option.
IMO use
http://support.microsoft.com/default...b;en-us;224070 (this is 1.)
It will allow to trap all errors you are not prepared to handle.
I would use 2 on very rare occasion only if I have no way to do it otherwise
(for example you could test for file existance instead of trapping the error
because the file is not available or checking a divider before a division
instead of trapping a divide by zero error). Also 2 is usefull only if your
application could do something about it and if you have a good idea of what
could goes wrong.
So in short I would use option #1 and would perhaps have one or two (or
zero) on error resume next line in the whole application...
--
Patrice
"Erencans" <Er******@discussions.microsoft.com> a écrit dans le message de
news:52**********************************@microsof t.com...
Hi to all,
I want to error handling in ASP. But i think that ASP is not enough for
error handling. I have got two chance.
1. I can prapare an error page and control throught IIS.
2. I can use on error resume next.
For 1. This is a general handling. I want to handle local error. Maybe i
do special thing when error occured.
For 2. I have to write alot of lines code. I have to control every line.
I wait your opinion.
Thanks alot.
Note: I must use ASP.