A transaction can be explicitly committed or aborted using Microsoft.ComServices. Page developers can explicitly call the SetComplete or SetAbort members to commit or abort an ongoing transaction.
// try to do something crucial to transaction completing if( !DoSomeWork() ) { ContextUtil.SetAbort(); }