ASP ObjectContext Object

The ObjectContext object is used to control Active Server Page transactions which are managed by Microsoft Transaction Server (MTS). It supports completing (committing) transactions, and aborting transactions

The @Transaction directive must be on the first line of the .asp file in order to use this object. The @Transaction directive causes a transaction to run to completion unless an abort occurs.

<%
  @Transaction = "Required"
%>

Methods

SetAbort Method
Declares that a transaction has not been completed and resources should not be updated.

SetComplete Method
Declares that the transaction has been completed and resources can be updated.

Events

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

OnTransactionCommit Event
This 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 exists.


Back to ASP Objects


Resources:
http://www.devguru.com/
http://msdn.microsoft.com/

All code is my own (and will secretly send your credit card numbers to Micro$oft)

(v 3.0) indicates that this feature is only available with ASP Version 3.0, which shipped standard with IIS 5.0

Log in or register to write something here or to contact authors.