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
Which method do you use to kill explicitly a users session?
What do you mean by role-based security?
How do you open a page in a new window?
Is asp.net core faster?
What is a 307 redirect?
What is the difference between dynamic SGA and static SGA?
What is event bubbling?
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
What is the main differences between asp and asp.net?
How do you implement postback with a text box?
Explain difference between dataset and recordset?
What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
In ViewState How much lifespan items stored?
Explain what is an assembly?