|
-
January 17th, 2009, 12:40 PM
#1
Urgent !!! WebClient Help Needed
Hi 2 all,
I am trying to download pdf files from website.Website requires Login & UserName.I am using this code but doesn't work.Any help will be appreciated !! Code i am usign
string url="MyWebsite/page1.pdf";
string FileName=@"C:\abc.pdf";
WebClient Wc=new WebClient();
NetWorkCredential nc=new NetworkCredential("MyUserName","MyPassword");
Wc.Credentials=nc;
Wc.DownloadFile(url,FileName);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|