Requirednew the page requires a transaction and a new

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rectives Descriptions NotSupported This value indicates that the page does not run within the scope of transactions. 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. RequiredNew The page requires a transaction and a new transaction will be started for each request. 36 Automatic Transactions and Web Services Using the TransactionMode enumeration property on the WebMethod metadata attribute <%@ WebService Language=”C#” %> using System; using System.Data; using System.Data.SQL; using System.Web.Services; public class TransactionStuff : WebService { [WebMethod(TransactionMode=TransactionMode.Required)] public void DeleteDatabase() { SQLConnection sqlConn = new SQLConnection( "Bar", "sa", "", "northwind"); SQLDataSetCommand sqlAdapter1 = new SQLDataSetCommand( &q...
View Full Document

This note was uploaded on 04/04/2014 for the course CS 5950 taught by Professor Staff during the Summer '08 term at Western Michigan.

Ask a homework question - tutors are online