c# - Object Doesn't not support property or Method Error in Javascript -


i have developed ocx.dll in c# (fw 2.0 windowss 7 64 bit os) of following link here

and registering ocx.dll, have copied ocx.dll windows/syswow64 folder since pc 64 bit , opened cmd prompt admin rights , typed following commands there

c:\windows\microsoft.net\framwork64\v2.xxxxx\regasm /codebase /tlb “c:\windows\syswow64\ocxctrl.dll” 

and prompt registered messagebox , opened regedit.exe , search classsid , present there.

i have written sample html code , inside calling ocx method using javascript below.

<html>   <head>     <title>webform1</title>     <meta name="generator" content="microsoft visual studio .net 7.1">     <meta name="code_language" content="c#">     <meta name=vs_defaultclientscript content="javascript">     <meta name=vs_targetschema content="http://schemas.microsoft.com/intellisense/ie5">   </head>   <body onload="openactivex()">    <!-- our activex object -->   <object id="ouractivex" name=”ouractivex" classid="clsid:121c3e0e-dc6e-45dc-952b-a6617f0faa32" viewastext codebase="ouractivex.cab"></object>     <!-- attaching activex event--> <script language="javascript">            function ouractivex::onclose(redirectionurl)        {         alert(redirectionurl);                        //window.location = redirectionurl;            } </script>   <script language="javascript">     //passing parameters activex object , starting application function openactivex() {     try     {         document.ouractivex.myparam = "hi here." //passing parameter activex         alert("1");         document.ouractivex.open(); //running method activex     }     catch(err)     {         alert("error "+err.description);     } }    

when run html code in ie 8.0 getting following error

object doesn't not support property or method 'open'

i dont know whats wrong above code.

please provide solutions above

thanks in advance


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -