Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp com object needs to ID asp.net web site
Message
De
15/03/2007 15:27:07
 
 
À
15/03/2007 13:29:56
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01204090
Message ID:
01204165
Vues:
17
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.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform