I created a vb6 activex control compiled into an ocx for a generic ms outlook task send. So I want to use this on an asp.net page...
compiled the ocx added it to my page....
Now I have this:
So my active x control is called myActiveX1. Inside of this active x component i have properties to store:Code:<form id="Form1" method="post" name="form1" runat="server"> <input type="button" name="cmdDoIt" onclick="doStuff()" style="Z-INDEX: 101; LEFT: 96px; WIDTH: 88px; POSITION: absolute; TOP: 88px; HEIGHT: 24px"> <OBJECT id="myActiveX1" style="Z-INDEX: 102; LEFT: 224px; POSITION: absolute; TOP: 232px" accessKey="myActiveX" classid="clsid:CD116C7E-1D49-4B29-9660-68B715DEB4CD" name="myActiveX1" codeBase="http://jakah.ims.com/activex/t/Project1.ocx" VIEWASTEXT> <PARAM NAME="_ExtentX" VALUE="8467"> <PARAM NAME="_ExtentY" VALUE="2381"> </OBJECT>
The subject of the task
The body of the task
And the person receiving the task
I tried using jscript and vbscript to assign these properties on the page on a client side html button. Not working...at all. If I create a button directly on the activex control and set the properties that works fine. But I cannot have this because I need to read in the person receving the task, the subject, and the body from the asp.net web page. Meaning these are controls on the page...so in jscript Id like to call sometihng like:
<script="javascript">
myActiveX1.Subject = "blah"
etc....
</script>
But I tried everything
form1.myActiveX.Subject = "blah"
where form1 is my web form...still no luck....
Can anyone point me to some help
Jon



Reply With Quote