What are the page level transaction and class level
transaction?
Answer Posted / madhavi
transaction support allows pages to participate in ongoing
Microsoft .NET Framework transactions. Transaction support
is exposed via an @Transaction directive that indicates the
desired level of support: Required, RequiresNew, Supported,
NotSupported, Disabled.
The Transaction attribute is applied at the class level too
to indicate that all class methods should be run in the
context of a transaction. If an unhandled exception is
thrown during the execution of a class method, the
transaction is aborted. Otherwise, the transaction is committed.
we can set the page level transaction by
<@page transaction='"required">
using System.EnterpriseServices;
[Transaction]
public class TransactionAttribute_Cl : ServicedComponent
{
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is the adavantage of using ASP.NET routing?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
What are uri parameters?
Why the javascript validation not run on the asp.net button but run successfully on the html button?
What is owin authentication?
What is special types forms
Define globalization and localization.
What is http post action?
Can master pages be nested?
What is web api vs wcf?
What is data grid view in asp.net?
9. Why should we hire you over the others waiting to be interviewed?
What are sharepoint pages?
What are the file extensions for razor views?
How does exception management works in ASP.NET?