Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy when loading html file from the hard disk through WebBrowser not everything is shown?
    primarykey
    data
    text
    <p>I have this code I'm downloading an HTML file of a website and saving it to my hard disk. In the constructor:</p> <pre><code>var uri = new Uri("http://www.walla.co.il"); </code></pre> <p>Then :</p> <pre><code>DownloadHtml(); private void DownloadHtml() { using (var client = new WebClient()) { client.DownloadFile(webSite, OriginalHtmlFilePath); } } </code></pre> <p>Then after doing some thing with the downloaded html file im loading it with WebBrowser:</p> <pre><code>string html = File.ReadAllText(ScrambledHtmlFilePath); webBrowser1.DocumentText = html; </code></pre> <p>If the website is for example <a href="http://www.cnn.com" rel="nofollow noreferrer">http://www.cnn.com</a> I load it with web browser no problems. If the site is for example <a href="http://www.walla.co.il" rel="nofollow noreferrer">http://www.walla.co.il</a> When i load it with web browser some images and other stuff not show up.</p> <p>And in both sites when i load them with the web broser im getting many script errors and i have to click many times on YES to keep loading the page.</p> <p>Script Error</p> <p>An error has occurred in the script on this page</p> <p>line char ....</p> <p>Do you want to continue running scripts on this page ?</p> <p>Then i select yes and i do it untill the page is loaded. If the html file is cnn.com content after doing many YES the page is loaded good.</p> <p>But if the html file is in hebrew for example walla.co.il after clicking many time on YES in the end i see:</p> <p><img src="https://i.stack.imgur.com/dFr8X.jpg" alt="enter image description here"></p> <p>And the original site is not like this at all.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload