OBJECT:  ObjectContext

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.

METHODS

SetAbort Method
The SetAbort method declares that a transaction has not been completed and resources should not be updated.

SetComplete Method
The SetComplete method declares that the transaction has been completed and resources can be updated.

EVENTS

OnTransactionAbort Event
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.

OnTransactionCommit Event
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.
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information