Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with OCX

Status
Not open for further replies.

madhav4u

Programmer
Aug 17, 2003
3
IN
Hi Friends,

I have created an ActiveX Control(OCX) and used in ASP, my OCX will fetch all the addresses from the client's Outlook. This is working fine, and it is displaying all the addresses in the OCX, but I am not able to access those address from OCX. I will be very greatful if anybody can help me to fetch the values from the OCX control.

I have tried in following way.

<HTML>
<HEAD>
<TITLE>outLookList.CAB</TITLE>
</HEAD>
<BODY>

<OBJECT ID=&quot;UserControl1&quot;
CLASSID=&quot;CLSID:AC06AABB-ACF3-4119-AEB9-1118BA0F6473&quot;
CODEBASE=&quot;outLookList.CAB#version=1,0,0,0&quot;>
</OBJECT>
<FORM Name=&quot;OutLook&quot; action=&quot;getValues.asp&quot; method=POST onSubmit=&quot;Hello()&quot;>
<Input type=text name=&quot;Names&quot;>
<Input type=text name=&quot;mailsIDs&quot;>
<INPUT type=&quot;submit&quot; value=&quot;Submit&quot; name=submit2>
</FORM>
<script language=javascript>
var names, mails
names = document.OutLook.UserControl1.getNames;
mails = document.OutLook.UserControl1.getMailIds;
document.OutLook.Names.value = names;
document.OutLook.mailsIDs.value = mails;
</script>
</BODY>

</BODY>
</HTML>

Here I am able to access getName and getMailIds properties at the system where that OCX registered, and not from other clients.

With Regards,
Madhav.
 
from javascript you willa ccess them as:
UserControl1.someproperty;

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top