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

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
%>

There are many worthy charities!!. But perhaps help starving children in Africa or South America AND help Charles too. a $5 tip buys him lunch at McDonalds, a $20 tip buys his kid Hitoshi a new computer game, a $39 tip buys his daughter Michiko a few nice outfits. See our donor list.