The ASP+ framework supports automatic transactions on Windows 2000. By inserting a transaction directive in your ASP+ page, you can instruct the page to participate in an existing transaction, begin a new transaction, or never participate in a transaction.
The table below lists and describes the transaction directives available in ASP+.
Directive | Description |
---|---|
Not_Supported | This value indicates that the page does not run within the scope of transactions. When a request is processed, its object context is created without a transaction, regardless of whether there is a transaction active. |
Supported | The page will run in the context of an existing transaction, if one exists. If not, it will run without a transaction. |
Required | The page requires a transaction. It will run in the context of an existing transaction, if one exists. If not, it will start one. |
Requires_New | The page requires a transaction and a new transaction will be started for each request. |
You can indicate the level of transaction support on a page by placing the directive in your code. For example, you can ensure that the page activities always execute in the scope of a transaction by inserting the following directive:
<@% TRANSACTION=”Required” %>
The default transaction state is None, which indicates that the transaction context will be ignored by the ASP+ framework. There is no explicit directive for this value; in other words, you cannot add TRANSACTION=”None” to your page. Instead, simply omit the transaction directive to apply the default value.