Go to: Articles List

On Error Resume Next Explained

This four word combination is used to tell the server to resume the next line of code if it finds an error. The situations you would want to use this in is when you are writing your own error trapping code and you want to display your error codes, not the ASP default ones.

Syntax:

Place "On Error Resume Next" in your code where you want the program flow to continue after it encounters an error. It is usually placed at the top of each page. *



* Brinkster requires the use of "On Error GoTo 0" and the checking of the err object whenever you are using "On Error Resume Next". The use of the "On Error Resume Next" directive in combination with database connections, can result in server hang-ups and other server problems.