Click here to Skip to main content
15,916,692 members
Home / Discussions / C#
   

C#

 
QuestionWeb Service Returns Null, No Exceptions Pin
GlobX4-May-11 17:26
GlobX4-May-11 17:26 
Questionhow to add the values from controls to class to read it in xml Pin
Rocky234-May-11 7:42
Rocky234-May-11 7:42 
Hi,

i have a set of directive(in listbox) in my application, which contain certain condition..

i need to add this condition from the response which i got in the form of xml and want to change the condition for those directive whose value is changed by the user from frontend application and for those which is unchanged i need to add the condition from the response which i got already in the form of xml..

could u tell me how to do it...

this is my code...

 Directive DADirective = new Directive();
       
            Directive[] daDirArray = new Directive[oDirective.Length];

            for (int j = 0; j < oDirective.Length; j++)
            {
                DADirective = new Directive();
                DADirective.DirectiveName = oDirective[j].DirectiveName;
                DADirective.DirectiveDescription = oDirective[j].DirectiveDescription;
                //DADirective.DirectiveID = oDirective.DirectiveID;
                DADirective.Priority = oDirective[j].Priority;
                DADirective.Default = oDirective[j].Default;

                daDirArray[j] = DADirective;
}
                DAData.Directive = daDirArray;
                        


                List<SetValueType> SetValueTypeList = new List<SetValueType>();
                GetValueTypeCondition(gValueTypeCondition, SetValueTypeList);

                              daDirArray[selectedindex].SetValueType = SetValueTypeList.FirstOrDefault();




                              
                List<Condition> Conditions = new List<Condition>();
                List<Group> GroupList = new List<Group>();

                getCondition(gCondition, Conditions, GroupList);

                int intcount = Conditions.Count;
                if (intcount == 1)
                {
                                        if (Conditions[0].Field.FieldID != "")
                    {
                                               daDirArray[selectedindex].Condition = Conditions.ToArray();
                        for (int i = 0; i < intcount; i++)

                            daDirArray[selectedindex].Condition[i].LogicalOperator = strLogicalOpt;
                    }
                }
                else
                {
                    daDirArray[DirectiveIndex].Condition = Conditions.ToArray();
                    for (int i = 0; i < intcount; i++)
                        daDirArray[selectedindex].Condition[i].LogicalOperator = strLogicalOpt;
                }

                daDirArray[DirectiveIndex].Group = GroupList.ToArray();
                                 string strRequest = GenerateXMLForDerivedAttibute(gdar);
}

QuestionConversion of List to DataTable Pin
Ankit Rajput4-May-11 0:45
Ankit Rajput4-May-11 0:45 
AnswerRe: Conversion of List to DataTable Pin
Peter_in_27804-May-11 0:59
professionalPeter_in_27804-May-11 0:59 
GeneralRe: Conversion of List to DataTable Pin
Ankit Rajput4-May-11 1:02
Ankit Rajput4-May-11 1:02 
GeneralRe: Conversion of List to DataTable Pin
Dave Kreskowiak4-May-11 1:14
mveDave Kreskowiak4-May-11 1:14 
GeneralRe: Conversion of List to DataTable Pin
Ankit Rajput4-May-11 1:22
Ankit Rajput4-May-11 1:22 
AnswerRe: Conversion of List to DataTable Pin
Blue_Boy4-May-11 1:13
Blue_Boy4-May-11 1:13 
JokeRe: Conversion of List to DataTable Pin
wizardzz4-May-11 7:39
wizardzz4-May-11 7:39 
AnswerRe: Conversion of List to DataTable Pin
wizardzz4-May-11 7:39
wizardzz4-May-11 7:39 
QuestionHow to axAcroPdf automatically perform click on save button Pin
cigara93933-May-11 22:05
cigara93933-May-11 22:05 
Question64 bit Console linked to 32 bit dll? Pin
devvvy3-May-11 16:59
devvvy3-May-11 16:59 
AnswerRe: 64 bit Console linked to 32 bit dll? Pin
Luc Pattyn3-May-11 17:30
sitebuilderLuc Pattyn3-May-11 17:30 
QuestionAsynchronous Response to a Synchronous TCPClient Pin
Octantis3-May-11 13:09
Octantis3-May-11 13:09 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Luc Pattyn3-May-11 13:25
sitebuilderLuc Pattyn3-May-11 13:25 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
BobJanova4-May-11 1:53
BobJanova4-May-11 1:53 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell4-May-11 8:37
jschell4-May-11 8:37 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
Octantis4-May-11 9:22
Octantis4-May-11 9:22 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Luc Pattyn4-May-11 15:08
sitebuilderLuc Pattyn4-May-11 15:08 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell5-May-11 8:02
jschell5-May-11 8:02 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Octantis5-May-11 10:11
Octantis5-May-11 10:11 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell6-May-11 10:48
jschell6-May-11 10:48 
QuestionHow to load Arabic File name Pin
raushan_93-May-11 8:41
raushan_93-May-11 8:41 
AnswerRe: How to load Arabic File name Pin
Pete O'Hanlon3-May-11 9:02
mvePete O'Hanlon3-May-11 9:02 
QuestionC# and Power Point Pin
PDTUM3-May-11 7:55
PDTUM3-May-11 7:55 

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.