I've tried a couple of ways of getting the source of a page, but it doesn't return the whole thing. I'm trying to get it to return the the whole source like it does if you view it in a web browser. Mine just returns parts of it and leaves some spots out. Any ideas??
sfrider0
6
Junior Poster
Recommended Answers
Jump to PostWell what have you done thus far?
Jump to PostTry using:
System.Net.WebClient client = new WebClient(); client.DownloadFile(source, target);
where source is the webpage address and target is the local file.
Obviously that will download the file, but it certainly does it in it's entirety. Im not sure about the use of DownloadString on large webpages.
All 6 Replies
Stinomus
11
Junior Poster
sfrider0
6
Junior Poster
Stinomus
11
Junior Poster
sfrider0
6
Junior Poster
Stinomus
11
Junior Poster
sfrider0
6
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.