Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
This chapter is from the book

Transactions Support with ASP.NET

You can create distributed transactions directly from ASP.NET. Doing so proves useful if the ASP.NET application is a client of the serviced component. With the ASP.NET transactional support, the ASP.NET page can act as the root of the transaction.

The Page directive of an ASP.NET page enables you to set the named property Transaction to a value you already know from the attribute [Transaction]. The allowed values of the Transaction property are Required, RequiresNew, Supported, NotSupported, and Disabled.

<%Page language="C#" Transaction="Required" %>

When you are calling serviced components from ASP.NET, the transaction can already be created; so multiple components that are called within the same method can participate with the same transaction.

  • + Share This
  • 🔖 Save To Your Account