Error handling

Error handling in Classic ASP / VBScript

'Turn on error handling
On Error Resume Next
'Catch error
If Err.Number <> 0 Then
Response.Write(Err.Description)
End If
'Clear error variable
Err.Clear
'Turn off error handling
On Error GoTo 0

Post a comment

Comments closed