![]() |
当脚本创建的事务中止后,将触发 OnTransactionAbort 事件
Sub OnTransactionAbort
...
End Sub
下面的例子创建一个事务,并在事务中止后发送信息到客户浏览器:
<%@ TRANSACTION=Required LANGUAGE="VBScript" %> <% ObjectContext.SetAbort 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 %>