c# - Javascript error when loading a page in the winforms webbrowser control -
i have webbrowser control on windows form. call this url. http://www.oddsportal.com/soccer/argentina/primera-division-2012-2013/results/
then following javascript error:
an error has occurred in script on page:
url: http://r1.oddsportal.com/x/global-130724112306.js
also, columns in table, next soccer matches, empty (all contain: - ) instead of decimal numbers. believe has js file in above error message.
when open page in normal windows browser (ie10) works fine, no error message , information on page present. also, didn't error message month ago when used program intensively guess has changed on website i'm requesting.
i had no results finding solution this. can help!
thanks, jasper
my code (easy reproduce, drag webbrowser on form, add documentcompleted event , copy code):
private string url = "http://www.oddsportal.com/soccer/argentina/primera-division-2012-2013/results/"; public frmmain() { webbrowser.url = new uri(url); } private void documentcompleted(object sender, webbrowserdocumentcompletedeventargs e) { if (e.url.absoluteuri == url) { // } }
Comments
Post a Comment