By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,132 Members | 776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,132 IT Pros & Developers. It's quick & easy.

C# webClient problem with loop

P: 1
Hi all,
This code genearates a error saying "could not connect to remote server", but only by the webclient call inside the loop, eventhough it's the exact same calls?

any suggestions?

Expand|Select|Wrap|Line Numbers
  1.             string newChat;
  2.             string oldChat = webClient1.DownloadString("http://www.zzzzzzz.com");
  3.             while (1 < 2)
  4.             {
  5.                 newChat = webClient3.DownloadString("http://www.zzzzzzz.com");
  6.                 if (newChat != oldChat)
  7.                 {
  8.                     textBox1.Text = newChat;
  9.                     oldChat = newChat;
  10.                 }
  11.             }
  12.  
May 27 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.