-
February 14th, 2011, 12:50 PM
#1
Can I Still Get the Source Code?
I have a program that I run in C# that goes to a website and in order to do its functions, I need to get the source code of the page.
Code:
System.Net.WebClient webClient = new System.Net.WebClient();
string strSource = webClient.DownloadString(URL);
webClient.Dispose();
return strSource;
Very recently, some of the pages return a [] character while others return the full source code of the page. When I go to the pages outside of my programming, the source code can be seen just as they should.
Why would this be happening and is there a way around this?
Tags for this Thread
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
|