Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IScriptingContext
Message
From
29/06/2000 16:48:23
 
 
To
29/06/2000 16:26:06
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00386574
Message ID:
00386748
Views:
17
>>>Can anyone help with that and ASP/VFP servers?
>>>Mark
>>
>>What's your question?
>How do you create an instance in ASP/VFP scenario?
>Thanks Mark

For an object loaded from an ASP page, you can create an OnStartPage method that will get called automatically when the page loads. This method will be passed an instance of the ScriptingContext object. You should be aware that the ScriptingContext object has been replaced by the Context Object, and MS recommends that you use the Context Object instead to access the ASP objects. You can get a reference to the Context Object from within a VFP COM object called from an ASP with this code:

oMTX = CREATEOBJECT("MTXAs.AppServer.1")
oCTX = oMTX.GetObjectContext()

You can then access the ASP objects like:

oResponse = oCTX.Item("Response")
oResponse.Write("This is from the COM server")
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform