Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll

my Blog
[prev. Lesson]  MTS: Essentials
     [next Lesson]  MTS: Book

MTX with ASP pages instead of Components

ASP pages that need to take advantages of transactions can without being forced to move the ASP script into a component. First one of the following directives must be placed on the page:

<%@ Transaction = Required %>
<%@ Transaction = Requires_New %>
<%@ Transaction = Supported %>
<%@ Transaction = Not_Supported %>

Of course the ASP page must include code to address both committing and aborting the transaction:

<%
SUB OnTransactionCommit()
   ...
END SUB

SUB OnTransactionAbort()
   ...
END SUB
%>

Chaz Wish List
Tall Tip $5
Grande Tip $20
Venti Tip $39
Tip Jar Thanks
2004 Thanks
2005 Thanks
HUGE Tip -love site