471,595 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

C# webClient problem with loop

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
0 1180

Post your reply

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

Similar topics

2 posts views Thread by xzzy | last post: by
4 posts views Thread by Crirus | last post: by
6 posts views Thread by Giovanni | last post: by
2 posts views Thread by kkb | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.