N
Nick Malik
Personally, I use webrequest, not web client. However, the credential part
should look like the following...
// Create a webrequest with the specified URL.
WebRequest myWebRequest = WebRequest.Create(url);
myWebRequest.Credentials = CredentialCache.DefaultCredential;
See
http://msdn.microsoft.com/library/d.../cpconusinginternetrequestresponseclasses.asp
--- Nick
should look like the following...
// Create a webrequest with the specified URL.
WebRequest myWebRequest = WebRequest.Create(url);
myWebRequest.Credentials = CredentialCache.DefaultCredential;
See
http://msdn.microsoft.com/library/d.../cpconusinginternetrequestresponseclasses.asp
--- Nick
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.Danny Hille said:Hi im trying to download some images using WebClient.DownloadData
System.Net.WebClient wc = new System.Net.WebClient();
wc.Credentials = new System.Net.NetworkCredentia(sNme,sPwd,sDom);
byte [] bytes = wc.DownloadData(txtURL.Text);
this raises an exception:
Request for the permission of type System.Net.WebPermission, System,