Monday, September 10, 2007

Error trapping in asp

On Error Resume Next

The above line turns on VBScript error trapping. In doing so, whenever a line of script produces an error the processing continues on to the next line of the script.


If err.Number <> 0 Then
Response.Write err.Number &
Response.Write err.Description
Response.Write err.Source
err.Clear

No comments: