The ObjectContext object is used to control Active Server Pages transactions which are managed by the Microsoft Transaction Server (MTS). You may either complete (commit) or abort a transaction.
The @Transaction directive must be on the first line of the .asp file in order to use this object (see code examples). The @Transaction directive causes a transaction to run to completetion unless an abort occurs.
Syntax: ObjectContext.SetAbort
The SetAbort method declares that a transaction has not been completed and resources should not be updated.
Syntax: ObjectContext.SetComplete
The SetComplete method declares that the transaction has been completed and resources can be updated.
The OnTransactionAbort event occurs when a transaction has been aborted for some kind of processing error. The signal of this event will run a handler script in the same file, if it exist.
The OnTransactionCommit event occurs when a transaction has been successfully completed. The signal of this event will run a handler script in the same file, if it exist.