Click here to Skip to main content
15,885,655 members
Home / Discussions / C#
   

C#

 
AnswerRe: XSL to get only elements which have no childs Pin
Pete O'Hanlon18-Sep-17 23:49
mvePete O'Hanlon18-Sep-17 23:49 
GeneralRe: XSL to get only elements which have no childs Pin
MrKBA19-Sep-17 0:26
MrKBA19-Sep-17 0:26 
Questioni need Visual Studio .NET 2002 prerequisites cd Pin
michael nabil18-Sep-17 23:05
michael nabil18-Sep-17 23:05 
AnswerRe: i need Visual Studio .NET 2002 prerequisites cd Pin
OriginalGriff18-Sep-17 23:14
mveOriginalGriff18-Sep-17 23:14 
QuestionMessage Closed Pin
16-Sep-17 18:15
professionalHardevsinh Mori16-Sep-17 18:15 
AnswerRe: SQLTransaction Pin
OriginalGriff16-Sep-17 19:57
mveOriginalGriff16-Sep-17 19:57 
GeneralRe: SQLTransaction Pin
Hardevsinh Mori16-Sep-17 20:24
professionalHardevsinh Mori16-Sep-17 20:24 
GeneralRe: SQLTransaction Pin
Hardevsinh Mori16-Sep-17 20:26
professionalHardevsinh Mori16-Sep-17 20:26 
can i do something like this?

SqlConnection conn = new SqlConnection(); //properly initiliased connection object with connection string
          SqlCommand command1 = new SqlCommand(); //properly initiliased command with sql text or procedure name
          SqlCommand command2 = new SqlCommand(); //properly initiliased command with sql text or procedure name

          SqlTransaction trx = conn.BeginTransaction();
          command1.Transaction = trx;
          command2.Transaction = trx;

          try
          {
              command1.ExecuteNonQuery();
              command2.ExecuteNonQuery();
              trx.Commit();
          }
          catch (SqlException ex)
          {
              trx.Rollback();
          }
          finally
          {
              //clean up resources
          }

GeneralRe: SQLTransaction Pin
OriginalGriff16-Sep-17 21:44
mveOriginalGriff16-Sep-17 21:44 
GeneralRe: SQLTransaction Pin
Hardevsinh Mori16-Sep-17 21:47
professionalHardevsinh Mori16-Sep-17 21:47 
GeneralRe: SQLTransaction Pin
OriginalGriff16-Sep-17 21:49
mveOriginalGriff16-Sep-17 21:49 
GeneralRe: SQLTransaction Pin
Hardevsinh Mori16-Sep-17 21:51
professionalHardevsinh Mori16-Sep-17 21:51 
GeneralRe: SQLTransaction Pin
OriginalGriff16-Sep-17 21:58
mveOriginalGriff16-Sep-17 21:58 
Questionc# project Pin
Member 1341347616-Sep-17 11:26
Member 1341347616-Sep-17 11:26 
AnswerRe: c# project Pin
Afzaal Ahmad Zeeshan16-Sep-17 11:57
professionalAfzaal Ahmad Zeeshan16-Sep-17 11:57 
AnswerRe: c# project Pin
Mycroft Holmes16-Sep-17 20:50
professionalMycroft Holmes16-Sep-17 20:50 
QuestionRefresh Partial View Pin
sunsher15-Sep-17 22:57
sunsher15-Sep-17 22:57 
AnswerRe: Refresh Partial View Pin
Richard MacCutchan15-Sep-17 23:45
mveRichard MacCutchan15-Sep-17 23:45 
Questionhow add video support in my application? Pin
Le@rner15-Sep-17 19:19
Le@rner15-Sep-17 19:19 
AnswerRe: how add video support in my application? Pin
Richard MacCutchan15-Sep-17 22:05
mveRichard MacCutchan15-Sep-17 22:05 
AnswerRe: how add video support in my application? Pin
jschell18-Sep-17 12:39
jschell18-Sep-17 12:39 
QuestionC# Dropdown to populate Relationship Tables Pin
Member 1341198315-Sep-17 4:56
Member 1341198315-Sep-17 4:56 
AnswerRe: C# Dropdown to populate Relationship Tables Pin
OriginalGriff15-Sep-17 5:28
mveOriginalGriff15-Sep-17 5:28 
Questionhow to encrypting and decryption pixel of image in C# Pin
WI54M13-Sep-17 23:18
WI54M13-Sep-17 23:18 
AnswerRe: how to encrypting and decryption pixel of image in C# Pin
OriginalGriff13-Sep-17 23:23
mveOriginalGriff13-Sep-17 23:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.