you make me crazy
Code: Select all
var webClient = new WebClient();
webClient.Headers[HttpRequestHeader.Accept] = "text/xml";
webClient.Encoding = Encoding.UTF8;
webClient.DownloadStringCompleted += Load_DownloadStringCompleted;
webClient.DownloadStringAsync(new Uri("http://" + IP + "/app/nothing.xml"));
Code: Select all
void Load_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
WebClient webClient = sender as WebClient;
if (webClient == null)
{
throw new ArgumentException("No WebClient !");
}
}
Under JavaScript I got the Exception !!!
Regards, Uwe