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 can we do with asp.net?
What are strong names?
Why do we need a web application session?
How to implement role based security in asp.net mvc? : Asp.Net MVC
Describe session handling in a webfarm?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?
What should you do is you want to remove an existing component but would like to make some funtionalities?
What is asp.net ajax?
What is data grid view in asp.net?
If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?
How do you declare static variable? What is its lifetime?
What is IPostBack? How to use it?
How can you pass multiple complex types in Web API?
What is authorization in asp.net?
What is datagrid asp.net?