-
compiled ocx on page...
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:
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>
So my active x control is called myActiveX1. Inside of this active x component i have properties to store:
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
-
Could you not do this like what we discussed last week?
Where you declare the properties when the page loads by adding the line Dim Woof as MyActiveControl to the page?
Or something like that. Can't exactl;y remember how we did it.
Woof?
-
woof ur my only hope...
get on msn please!!!!
This is a vb6.0 active x...
Even if I do protected p as Project1.UserControl1
p.CreateTask("jhermiz", "blah")
I get an error about calling createtask with a null reference...
even if I use NEW keyword same problem...
But even with this...I think this is the wrong way to do it because it would end up sending the task from the server side then the client.
Get online its much easier to explain!
-
if i do
Protected p as New Project1.UserControl1
I get an underline under p saying it is not accessible in this context because it is private
But again...I dont know if this is exactly what i want to do even...
like i said i need to call CreateTask from the client side...