The ObjectContext object is used to commit or abort transactions. For an .asp page to commit transaction, @TRANSACTION directive should be present in the script.
Syntax :
ObjectContext.method
Methods | Description |
SetAbort | Aborts the transaction initiated by the ASP script. |
SetComplete | Declares that there is no reason for the transaction not to complete. So if all the components taking part in the transaction also call SetComplete method then the transaction will complete. |
Events | Description |
OnTransactionAbort | This event occurs when the transaction is aborted. |
OnTransactionCommit | This event occurs when the transactional script's transaction is committed. |