Hi,
I have a windows application which project out put is class library. In that i have a text box and button. I created a property with the name -UIDwhich is public and returns textbox value.
Now i ve taken webapplication and i added theDLL to the application. in JScript file here the method.
function GetWindowCtrl()
{
document.write(
'<object id="windowCtrl" name="windowCtrl" height="200" width="200" classid="WindowsFormsSmartCardDLL.dll#WindowsFormsSmartCardDLL.SmartCardTest" VIEWASTEXT/>');
}
i'm calling the method in webpage.
<
div align="center">
<input id="Button2" type="button" onclick="return doMySubMit();" value="button" />
</div>
<div>
<script language="javascript">GetWindowCtrl(); </script>
</
</
div>
<
script language="javascript" >
function doMySubMit()
{
var MyAx=document.forms[0].windowCtrl;
//alert(MyAx.UID);
//var MyAx =new ActiveXObject("WindowsFormsSmartCardDLL.SmartCardTest");
alert(MyAx.UID);
return false;
}
</
script>
Itz displaying on webpage.There is no issue in it.
Now when i click on button it should give me the text box value.Here im facing the problem.im not able to retrive the textbox value.
Active codewhich i displayed isgiving me 'undefined' .
when i call through Activexobject("WindowsFormsSmartCardDLL.SmartCardTest");
itz giving me an error like 'Automation server can't create object.'
can any one please solve my problem.
Thanks and Regards,
NagarjunaDilip.