Object does not support this property or method
-
The following code runs fine on my development computer but when I publish the website to the server it throws the error 'Object does not support this property or method' var OLECMDID = 7; var PROMPT = 1; // 2 DONTPROMPTUSER var WebBrowser = ''; document.body.insertAdjacentHTML('beforeEnd', WebBrowser); WebBrowser1.ExecWB(OLECMDID, PROMPT); WebBrowser1.outerHTML = ""; If I debug it throught the browser the following line is where it has trouble: WebBrowser1.ExecWB(OLECMDID, PROMPT); How can I get this to run on the server?
-
The following code runs fine on my development computer but when I publish the website to the server it throws the error 'Object does not support this property or method' var OLECMDID = 7; var PROMPT = 1; // 2 DONTPROMPTUSER var WebBrowser = ''; document.body.insertAdjacentHTML('beforeEnd', WebBrowser); WebBrowser1.ExecWB(OLECMDID, PROMPT); WebBrowser1.outerHTML = ""; If I debug it throught the browser the following line is where it has trouble: WebBrowser1.ExecWB(OLECMDID, PROMPT); How can I get this to run on the server?
:wtf: :wtf: Are you putting Windows WebBrowser control over a Web page. This is weird. Why not you use IFrame to do this ?? :confused:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.