S
Sudip_inn
Guest
i was trying to load a site into web browser control and site is not loading rather throwing error script error etc
my pc is win7 & IE version 11. when try to load this site Inline XBRL Viewer into my web browser control then getting many script related error and site is not loading properly.
i came to know if i can add some meta tag into web page then it will load. so i added this code to meta tag into lading site which does not work for me.
here is code. i added this code in web browser DocumentCompleted event: to add meta tag to solve my issue but fail
Forms.WebBrowser browser = sender as Forms.WebBrowser;
if (browser == null) return;
Forms.HtmlDocument htmlDocument = browser.Document;
if (htmlDocument == null) return;
Forms.HtmlElement ie8MetaElement = htmlDocument.CreateElement("META");
ie8MetaElement.SetAttribute("content", "IE=8");
ie8MetaElement.SetAttribute("http-equiv", "x-ua-compatible");
Forms.HtmlElement headElement = htmlDocument.GetElementsByTagName("HEAD")[0];
headElement.Children[0].InsertAdjacentElement(Forms.HtmlElementInsertionOrientation.BeforeBegin, ie8MetaElement);
please tell me how could i fix this issue with minimum coding change. screen shot attached
i also used a code from this link Configuring the Emulation Mode of an Internet Explorer WebBrowser Control
which throwing a error called Failed to update browser emulation version
looking for guide line. thanks
Continue reading...
my pc is win7 & IE version 11. when try to load this site Inline XBRL Viewer into my web browser control then getting many script related error and site is not loading properly.
i came to know if i can add some meta tag into web page then it will load. so i added this code to meta tag into lading site which does not work for me.
here is code. i added this code in web browser DocumentCompleted event: to add meta tag to solve my issue but fail
Forms.WebBrowser browser = sender as Forms.WebBrowser;
if (browser == null) return;
Forms.HtmlDocument htmlDocument = browser.Document;
if (htmlDocument == null) return;
Forms.HtmlElement ie8MetaElement = htmlDocument.CreateElement("META");
ie8MetaElement.SetAttribute("content", "IE=8");
ie8MetaElement.SetAttribute("http-equiv", "x-ua-compatible");
Forms.HtmlElement headElement = htmlDocument.GetElementsByTagName("HEAD")[0];
headElement.Children[0].InsertAdjacentElement(Forms.HtmlElementInsertionOrientation.BeforeBegin, ie8MetaElement);
please tell me how could i fix this issue with minimum coding change. screen shot attached
i also used a code from this link Configuring the Emulation Mode of an Internet Explorer WebBrowser Control
which throwing a error called Failed to update browser emulation version
looking for guide line. thanks
Continue reading...