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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send data from ASP page to the activeX control

Status
Not open for further replies.

gohan2108

Programmer
Apr 5, 2003
10
US
Hi
How can send data from ASP page to the activeX control. I have some variables in one asp page. When I go to the enxt page I have this activeX control loaded. The moment it loads I need to send the stored variables inside ActiveX control.
How can I do that??
thanks in advance
Gohan
 
>> Copy the data into SESSION variables for this task.

Why would you do that?

>> How can send data from ASP page to the activeX control.

Ever heard of "function parameters"?

-pete

 
yes u r right no need to copy into session variables. I have a function in activex control which takes parameters. from asp i call the function using the object name and function and pass the parameters. inside activex i have the code for storing those variables into global variables.

example:
usercontrol1.functionName para1,para2,para3

where usercontrol1 is the activex object id we define inside object tag.

Gohan
 
so what's the answer i have same problem

-asp page-
<OBJECT ....etc...>
<PARAM NAME=&quot;name&quot; VALUE=&quot;bob&quot;>
</OBJECT>

-in VB activex control-

dim name
name = ??????????

how do you get the PARAM form the asp to here????
 
>> -asp page-

That's not &quot;from asp&quot;. At that point your in HTML running in the browser. It's not the same thing.

I'm not a VB guy but i imagine you need to use the property GET/SET ActiveX VB technique whatever that is. I can’t show you because I would rather have some teeth pulled than write VB code. LOL

-pete


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top