I'm not completely sure I understand your question but a simple example of error event handling would be:
<%
Function DoSomething()
On Error Goto ErrorHandler
' ... some code ...
dbconn.open "<your connection string>"
' ... more db code ...
ExitHandler:
Exit Function
ErrorHandler:
' You can decode the Err object here to determine the severity
' of your error.
Response.Write(Err.Description)
Resume ExitHandler
End Function
%>
|