free e- mail
thaimail
hotmail
yahoo
siam2you
thammasat
Home
Visual Basic
Active Server Page
JavaScript
Network
Other
Active Server Pages.
ObjectContext Object
All Objects
All Events
EVENT: ObjectContext.OnTransactionCommit
The
OnTransactionCommit
event occurs when a transaction has been completed. The
OnTransactionCommit
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 the transaction is completed.
Code:
<% @Transaction=Required Language="VBScript" %>
<HTML>
<HEAD>
</HEAD>
<BODY>
<%
Do
x=x+1
Response.Write x & "<BR>"
Loop While x < 5
%>
</BODY>
</HTML>
Sub
OnTransactionCommit()
Response.Write "The transaction committed. This is the Transaction Commit Handler."
End Sub
Output:
1
2
3
4
5
The transaction committed. This is the Transaction Commit Handler.
Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information
ASP - Link
ASP reference
B
C
D
E
F
G
Last update:
Copyright © 2001.Memo Wil@keo everything that I like Co.,Ltd.