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

~ by Lakshmi Jena on September 2, 2007.

Leave a Reply