Article ID: 182036
Article Last Modified on 5/2/2006
<%@ TRANSACTION=Required LANGUAGE="VBScript" %>
<HTML>
<HEAD>
<TITLE>Simple Transactional Web Page</TITLE>
</HEAD>
<BODY BGCOLOR="White" topmargin="10" leftmargin="10">
<font size="4" face="Arial, Helvetica">
<b>Transactional Web Page</b></font><br>
<hr size="1" color="#000000">
<p>
This is an example of an Aborted Transaction.
This transaction will abort due to a Script
Time-out error, which is an error that you
could not trap without a transaction.
</p>
<p>
Please wait until the script times out...
</p>
<%
Do while 1 = 1
'Infinite Loop
Loop
%>
</BODY>
</HTML>
<%
' The Transacted Script Abort Handler. This sub-routine
' will be called if the script transacted aborts
Sub OnTransactionAbort()
Response.Write "<p><b>The Transaction just aborted</b>."
Response.Write "This message came from the "
Response.Write "OnTransactionAbort() event handler."
end sub
%>
NOTE: This script will run until one of two events occurs. Either Server.ScriptTimeout is reached and an ASP 0113 is returned, or because the page is enlisting in a transaction, it is being affected by the default transaction timeout of 60 seconds.287499 HOWTO: Change the Transaction Timeout Value for MTS or COM+
253669 INFO: What's New with COM+ 1.0
Keywords: kbhowto kbscript kbdatabase kbcode KB182036