Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retreive IIS ServerVariables from a VB component
Message
De
08/01/2001 06:04:27
 
Information générale
Forum:
Visual Basic
Catégorie:
Applications Internet
Divers
Thread ID:
00460011
Message ID:
00460486
Vues:
13
Hi Eric


Set a reference in your DLL to "Microsoft Active Server Pages Object Library" and MTS.

I'm not completely sure but you may have to install IIS or PWS on your machine.

The Response and Request objects are derived from the ObjectContext

dim strBrowser as String
dim oRequest as Request

set oRequest = oObjectContext("Request")
strBrowser = oRequest.ServerVariables("HTTP_USER_AGENT")


Alternatively you can find out the browser used from some client-side JavaScript.

Hope this is what you're looking for.

Thanks

James
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform