Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
ObjectContext Object
All Objects
All Events
EVENT: ObjectContext.OnTransactionAbort
The
OnTransactionAbort
event occurs when a transaction has been aborted for some kind of processing error. The
OnTransactionAbort
event is simply a subroutine with a reserved name that is referenced by the script. It can contain any script you may wish to run when an abort occurs.
Code:
<%
@Transaction=Required Language="VBScript"
Response.Buffer = TRUE
Server.ScriptTimeout = 5
%>
<HTML>
<HEAD>
</HEAD>
<BODY>
<%
Do
x=x+1
Response.Write x & "<BR>"
Loop While x < 10000
%>
</BODY>
</HTML>
Sub
OnTransactionAbort()
Response.Write "The transaction aborted because the script ran out of time. This is the Transaction Abort Handler."
End Sub
Output:
The transaction aborted because the script ran out of time. This is the Transaction Abort Handler.
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information