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 are triggers of an updatepanel?
What are the differnt types of handler in ASP.NET?
What is syntax code to send email from an asp.net application?
Can you set which type of comparison you want to perform by the comparevalidator control?
What are sql joins?
Which object encapsulates state or data of a user?
What is difference between cache and session?
What is a session in asp.net?
What is the difference between pathparam and queryparam?
Describe the method to create a permanent cookie?
Is it possible to migrate visual interdev design-time controls to asp.net?
What is the difference between custom controls and user controls?
Differentiate between structure and class.
How do I send an email message from my ASP.NET page?
What is the main function of url routing system in asp.net mvc? : asp.net mvc