Library code snippets
Transactions in ASP
Using transactions in Web applications is often advisable, particularly
if you're dealing with databases. But many people mistakenly believe
that, to leverage Microsoft Transaction Server, they have no choice but
to write compiled components and register them in MTS. While this is
usually the best approach, you can make even simple ASP scripts
transaction-aware using the @TRANSACTION directive. Add the following
line to the top of your ASP file:
<%@ TRANSACTION = value %>
where value is one of the following:
Required: The script will use a transaction, participating in any open
transaction or creating a new one if none is open.
Requires_New: The script will always start a new transaction.
Supported: The script will use any open transaction but will not initiate
a new one if none is currently open.
Not_Supported: The script will neither initiate nor participate in a
transaction.
Related articles
Related discussion
-
Calling a function from ASP code
by dunk00 (3 replies)
-
GridView HyperLinkField Problem
by Paul2 (0 replies)
-
looking for help on asp
by cladironbeard (2 replies)
-
simple vb to c#, help please
by lksath (1 replies)
-
Binary Studio | software development outsourcing Ukraine
by Hexfinity (2 replies)
Related podcasts
-
Scott Guthrie
Scott catches up with Scott Guthrie in an interview covering Ajax, Asp 2.0, extender controls, CSS adapters and more.
Events coming up
-
Aug
27
Model-View-Presenter (MVC) in ASP.NET
San Francisco, United States
Model-View-Presenter (MVC) in ASP.NET Presenter Clayton Peddy, Terrace Software, Inc. Details TBD
Does this works with Access Databases also?
Thanks,
Syamprasad
This thread is for discussions of Transactions in ASP.