I'm using WebClient's DownloadString functionality to store the HTML source of a webpage to a string in a C# web application (ASPX). The issue is that the string seems to be ending when it gets to a part of the HTML source that has a URL.
I tried writing the string to a text file and this is how it ends:
<body class="page">
<div id="container">
<div id="header">
<a href="http://
The original web source code has about 50 lines after this that my application doesn't include. It doesn't even finish the line it's on leading me to think the slashes are some sort of string break sequence in C# maybe?
To troubleshoot I tried WebClient DownloadFile and saved the HTML source at my specified web address directly to a text file. This worked and the data was not truncated. When I tried reading this text file to a string though, the same thing happened.
Any ideas? I've spent hours searching online and stuffing around and I can't figure this out! I've also tried alternative methods for writing data from a URL to a string however the same issue occurs.
Thanks in advance.