Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp com object needs to ID asp.net web site
Message
From
15/03/2007 17:39:30
 
 
To
15/03/2007 15:27:07
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01204090
Message ID:
01204272
Views:
20
Very interesting. I never had reason to pass in the Request object. Please provide a simple example of how you would pass the Request object to a method call. Let's say I have a method called GetAllAppointments() in the com object. And... is there a way of avoiding having to supply each and every method call with this parameter?

Neil

>Neil,
>
>>I have 2 asp.net web sites on my production server whose web pages interact with the same MTDLL vfp com object, which resides on the same web server. Is there a way that the COM object can indentify which of the 2 web sites is accessing a method in it?
>
>I assume you are running with aspcompat=true to talk to the COM object? If so, you should be able to pass into your method call the actual Request object, or just a specific property of it that indicates the URL that is being processed. Or you can refer to whatever .NET property holds that info (don't remember off the top of my head) and pass it as a string into your method call.
>
>That's probably the easiest way to handle what you need.
Previous
Reply
Map
View

Click here to load this message in the networking platform