Can anyone help know how to implement transaction in asp .net? Just like the database transaction, can we put some lines of code in a transaction …for example
begin transaction
{
myMethodToSendMail() //sends email
myMethodToWrite() //Writes into an file e.g. xml file
myMethodToDB() //updates database
}
commit
Is there any way to achieve the above situation via asp .net using c#? I dont think the class SqlTransaction is the one to use……can anyone help…thanks in advance