NET - Describe the steps to enable transactions in a web method

Describe the steps to enable transactions in a web method.

You have to use TransactionOption property of the WebMethod attribute.

Example:
public class MyService : System.Web.Services.WebService
{
       [System.Web.Services.WebMethod(TransactionOption=TransactionOption.RequiresNew)]
       public string MyTransactionMethod()
       {
              // The transaction was successful...
              ContextUtil.SetComplete();
              return ContextUtil.TransactionId.ToString();
       }
}
NET - Explain the deployment features of the .NET Framework
Explain the deployment features of the .NET Framework - No-impact applications, Private components by default, Controlled code sharing, Side-by-side versioning, XCOPY deployment and replication, On-the-fly updates, Integration with the Microsoft Windows Installer, Enterprise deployment, Downloading and caching, Partially trusted code......
NET - What are Merge Module projects?
What are Merge Module projects? - Merge Module projects enable creation and deployment of code that can be shared by multiple applications.......
NET - Explain the format of the assembly version stored in the AssemblyInfo file
Explain the format of the assembly version stored in the AssemblyInfo file - AssemblyVersion/AssemblyFileVersion......
Post your comment