Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
Questionwebrequest sent twice Pin
Forest44734-Mar-17 22:32
Forest44734-Mar-17 22:32 
AnswerRe: webrequest sent twice Pin
Michael_Davies4-Mar-17 22:59
Michael_Davies4-Mar-17 22:59 
GeneralRe: webrequest sent twice Pin
Forest44734-Mar-17 23:15
Forest44734-Mar-17 23:15 
GeneralRe: webrequest sent twice Pin
Michael_Davies4-Mar-17 23:43
Michael_Davies4-Mar-17 23:43 
AnswerRe: webrequest sent twice Pin
Richard Deeming5-Mar-17 23:52
mveRichard Deeming5-Mar-17 23:52 
GeneralRe: webrequest sent twice Pin
Forest44735-Mar-17 23:59
Forest44735-Mar-17 23:59 
GeneralRe: webrequest sent twice Pin
Forest44736-Mar-17 2:59
Forest44736-Mar-17 2:59 
Questionoptimizing xml reading code in C# Pin
Member 130276784-Mar-17 17:27
Member 130276784-Mar-17 17:27 
Hi experts ,

we are using this code to read xml file, we want to optimize the code .
Issue is that in our xml file around 50 attributes are there , but from that we want hardly 2 to 3 attributes value.
but here while loop is executing 50 times , that we don't want.

Please give suggestion .
Thanks

using (XmlReader reader = XmlReader.Create(@"C:\abc.xml"))
            {
                while (reader.Read() )               
                {
                    
                    if (reader.IsStartElement("AccountNumber"))
                    {
                       
                        listBox1.Items.Add(reader.ReadString());                             
                        
                    }
                    else if ((reader.IsStartElement("AvailableDate")))
                    {
                        listBox1.Items.Add(reader.ReadString());
                    }
                    
                }
            }

AnswerRe: optimizing xml reading code in C# Pin
Pete O'Hanlon4-Mar-17 20:45
mvePete O'Hanlon4-Mar-17 20:45 
QuestionImplementing common control library for both the WPF and UWP version of an application Pin
macika1234-Mar-17 11:08
macika1234-Mar-17 11:08 
AnswerRe: Implementing common control library for both the WPF and UWP version of an application Pin
Pete O'Hanlon4-Mar-17 20:29
mvePete O'Hanlon4-Mar-17 20:29 
GeneralRe: Implementing common control library for both the WPF and UWP version of an application Pin
macika1235-Mar-17 2:26
macika1235-Mar-17 2:26 
GeneralRe: Implementing common control library for both the WPF and UWP version of an application Pin
Pete O'Hanlon5-Mar-17 21:33
mvePete O'Hanlon5-Mar-17 21:33 
QuestionWrong post.Deleted. Pin
User 110609793-Mar-17 8:57
User 110609793-Mar-17 8:57 
AnswerRe: Faking AppDomain.CurrentDomain.BaseDirectory, is this way too bad? .net/c# ;) Pin
Richard MacCutchan3-Mar-17 21:10
mveRichard MacCutchan3-Mar-17 21:10 
GeneralRe: Faking AppDomain.CurrentDomain.BaseDirectory, is this way too bad? .net/c# ;) Pin
User 110609793-Mar-17 21:16
User 110609793-Mar-17 21:16 
QuestionSet IIS Maximum Worker Processes with C# Pin
jonmy2-Mar-17 22:43
jonmy2-Mar-17 22:43 
AnswerRe: Set IIS Maximum Worker Processes with C# Pin
Pete O'Hanlon2-Mar-17 23:01
mvePete O'Hanlon2-Mar-17 23:01 
Questionhow do i make client desgin his own report using c# application? Pin
salm abdullsamad2-Mar-17 6:43
salm abdullsamad2-Mar-17 6:43 
AnswerRe: how do i make client desgin his own report using c# application? Pin
Richard MacCutchan2-Mar-17 6:50
mveRichard MacCutchan2-Mar-17 6:50 
AnswerRe: how do i make client desgin his own report using c# application? Pin
OriginalGriff2-Mar-17 8:22
mveOriginalGriff2-Mar-17 8:22 
Questionhow to show images from server image's path to crystal report using c# application ? Pin
salm abdullsamad2-Mar-17 6:38
salm abdullsamad2-Mar-17 6:38 
AnswerRe: how to show images from server image's path to crystal report using c# application ? Pin
Richard MacCutchan2-Mar-17 6:49
mveRichard MacCutchan2-Mar-17 6:49 
QuestionHow to get a notification in a main thread when a child thread finished its task in c#. Pin
Hanumantappa Budihal1-Mar-17 23:37
professionalHanumantappa Budihal1-Mar-17 23:37 
AnswerRe: How to get a notification in a main thread when a child thread finished its task in c#. Pin
Richard MacCutchan1-Mar-17 23:41
mveRichard MacCutchan1-Mar-17 23:41 

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.