p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: help


Message #1 by "stanley" <apollo23@s...> on Thu, 15 Jun 2000 2:36:53
This all depends on the user control you created. I can however give you 
some guidelines:

1. Make sure that in VB you define any parameters as a Variant. VB script 
only knows variants, so that is what it will pass to your object.
2. The same holds true for any return values: make them variants as well
3. Then initialize your object like this:

         Set objMyObject = Server.CreateObject(progIDOfYourComponent)
         aReturnValue 
=  objMyObject.myMethodThatTakesTwoParams(Session("USER_ID"), 
sConnectionString)

The code above passes a Session variable and a local variable to a method 
of your object.

If, however, you'd like to access intrinsic ASP objects, like Session or 
Request from INSIDE your component, things ae a bit different. Let me know 
if you need that, and I can post some code to accomplish that.

Imar





At 13:29 6/27/2000 -0400, you wrote:
>      Does anyone know how I can pass a ASP session variable  to ActiveX 
> control
>(User control).  I created this ActiveX control using VB.   Any help would be
>appreciated.  Thanks!!
>
>
>
>---
>Wrox Professional Wireless Developer Conference, Amsterdam, July 10-12. 
>Covering application of WAP, XML, ASP, Java and C++ to wireless computing, 
>choose from 40+ technical sessions delivered by industry experts: 
>http://www.wroxconferences.com/ConferenceHome.asp?ConfID=9
>---
>You are currently subscribed to proasp_howto.



  Return to Index