Click here to Skip to main content
16,011,784 members
Home / Discussions / C#
   

C#

 
GeneralRe: XAML writer serialization limitation Pin
jschell10-Jan-11 8:57
jschell10-Jan-11 8:57 
Questioncreate a modern dictionary Pin
mory_2607-Jan-11 21:24
mory_2607-Jan-11 21:24 
AnswerRe: create a modern dictionary Pin
OriginalGriff7-Jan-11 22:04
mveOriginalGriff7-Jan-11 22:04 
AnswerRe: create a modern dictionary Pin
Abhinav S8-Jan-11 0:51
Abhinav S8-Jan-11 0:51 
AnswerRe: create a modern dictionary Pin
Not Active8-Jan-11 3:24
mentorNot Active8-Jan-11 3:24 
AnswerRe: create a modern dictionary Pin
Yusuf8-Jan-11 4:48
Yusuf8-Jan-11 4:48 
GeneralRe: create a modern dictionary Pin
Ali Al Omairi(Abu AlHassan)8-Jan-11 9:53
professionalAli Al Omairi(Abu AlHassan)8-Jan-11 9:53 
QuestionI Want to know where's the error in this update Method ? Pin
Honeyboy_207-Jan-11 9:18
Honeyboy_207-Jan-11 9:18 
I want to update Some Value to Marked Number Value in MarkedNumber Column

I Want to know where's the error in this code

public void UpdateMessageToIncludeMarkedNumber()
   {

       #region Compare to Insert Marked Number With Matching Message into Table in Database.
       SqlCommand cmd = new SqlCommand();
       cmd.CommandText = "update VopMessage_tbl set MarkedNumber=@MarkedNumber  where Byte24=@Byte24 and Byte4=@Byte4";
       cmd.Connection = con;


       for (int t = 0; t < Set10bytesMessage.Count; t++)
       {
           MarkedNumber mNumber = (MarkedNumber)Set10bytesMessage[t];
           for (int f = 0; f < Set30bytesMessage.Count; f++)
           {
               VopMessage vms = (VopMessage)Set30bytesMessage[f];
               if (mNumber.Byte4 == vms.Byte24 & mNumber.Byte5 == vms.Byte4)
               {
                   cmd.Parameters.AddWithValue("@Byte24", vms.Byte24);
                   cmd.Parameters.AddWithValue("@Byte4", vms.Byte4);
                   string All2BytesOfTwoMarkedNumber = mNumber.Byte4 + mNumber.Byte5;
                   cmd.Parameters.AddWithValue("@MarkedNumber", All2BytesOfTwoMarkedNumber);
               }
               else
               {
                  // cmd.Parameters.AddWithValue("@MarkedNumber", "لا يوجد");
               }
           }
       }
       con.Open();
       cmd.ExecuteNonQuery();
       con.Close();
       #endregion

   }

AnswerMy guess Pin
Keith Barrow7-Jan-11 9:28
professionalKeith Barrow7-Jan-11 9:28 
GeneralRe: My guess Pin
Honeyboy_207-Jan-11 10:15
Honeyboy_207-Jan-11 10:15 
GeneralRe: My guess Pin
Keith Barrow7-Jan-11 10:29
professionalKeith Barrow7-Jan-11 10:29 
GeneralRe: My guess Pin
Eddy Vluggen7-Jan-11 11:12
professionalEddy Vluggen7-Jan-11 11:12 
GeneralRe: My guess Pin
Not Active7-Jan-11 11:53
mentorNot Active7-Jan-11 11:53 
GeneralRe: My guess Pin
Eddy Vluggen7-Jan-11 22:05
professionalEddy Vluggen7-Jan-11 22:05 
GeneralRe: My guess Pin
Honeyboy_207-Jan-11 11:20
Honeyboy_207-Jan-11 11:20 
GeneralRe: My guess Pin
Not Active7-Jan-11 11:50
mentorNot Active7-Jan-11 11:50 
GeneralRe: My guess Pin
Honeyboy_207-Jan-11 12:04
Honeyboy_207-Jan-11 12:04 
GeneralRe: I Want to know where's the error in this update Method ? Pin
JOAT-MON7-Jan-11 9:29
JOAT-MON7-Jan-11 9:29 
AnswerRe: I Want to know where's the error in this update Method ? Pin
#realJSOP8-Jan-11 0:22
professional#realJSOP8-Jan-11 0:22 
Question.NET 4 changes to Type.GetProperties Pin
AndyGray7-Jan-11 6:07
AndyGray7-Jan-11 6:07 
AnswerRe: .NET 4 changes to Type.GetProperties Pin
Richard MacCutchan7-Jan-11 8:21
mveRichard MacCutchan7-Jan-11 8:21 
GeneralRe: .NET 4 changes to Type.GetProperties Pin
AndyGray8-Jan-11 6:37
AndyGray8-Jan-11 6:37 
AnswerRe: .NET 4 changes to Type.GetProperties Pin
#realJSOP8-Jan-11 0:26
professional#realJSOP8-Jan-11 0:26 
GeneralRe: .NET 4 changes to Type.GetProperties Pin
AndyGray8-Jan-11 6:39
AndyGray8-Jan-11 6:39 
GeneralRe: .NET 4 changes to Type.GetProperties Pin
#realJSOP8-Jan-11 6:48
professional#realJSOP8-Jan-11 6:48 

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.