Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m using C#,asp.net,VS 2005 and sql server 2005


this s my first command:
Int32 numToModality = Convert.ToInt32((commandToModality.ExecuteScalar()));
if (numToModality != 0)
{
    Int32 numToStudyType =Convert.ToInt32(commandToStudyType.ExecuteScalar());
    if (numToStudyType != 0)
    {
      //some message to he user
    }

    else
    {
      //i want to rollback  commandToModality command
    }
}


how to rollback commandToModality command?
any help plz?
regards
Karan
Posted
Updated 12-May-11 1:20am
v2

 
Share this answer
 
Comments
karan joshua 12-May-11 8:36am    
thank u...
 
Share this answer
 
Comments
karan joshua 12-May-11 8:36am    
thank u...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900