
Untitled
By: a guest on
May 27th, 2012 | syntax:
None | size: 0.61 KB | hits: 13 | expires: Never
Silverlight multiple callbacks within the same host not working
HttpWebRequest HttpWebRequest = (HttpWebRequest)WebRequest.Create(UploadUrl);
HttpWebRequest.Method = "POST";
HttpWebRequest.BeginGetRequestStream(new AsyncCallback(WriteFile), HttpWebRequest);
HttpWebRequest.BeginGetResponse(new AsyncCallback(ReadCallback), HttpWebRequest);
WebClient WebClient = new WebClient();
WebClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler((object sender2, DownloadStringCompletedEventArgs e2) =>
{
//Tell the client the file is done
});
WebClient.DownloadStringAsync(new Uri(processUrl));