Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browser Capabilities Problem
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Browser Capabilities Problem
Divers
Thread ID:
00708981
Message ID:
00708981
Vues:
57
I am trying to detect if a user's browser has JavaScript and or Cookies Enabled/Disabled. The Browser Capabilties component tells you if the user's browser supports JavaScript or Cookies but does NOT tell you if the user has these settings turned on or off.

This is the very basic code I have:

HttpBrowserCapabilities bc;
string s;
bc = Request.Browser;
s = "Browser Capabilities" + "\n";
s += "Name = " + bc.Browser + "\n";
s += "Version = " + bc.Version + "\n";
s += "Supports Cookies = " + bc.Cookies + "\n";
s += "Supports JavaScript = " + bc.JavaScript + "\n";

Does anyone know how to get this info? I can obviously tell if the user's browser is capable of support for these functions but don't know if what state the user's setting's are in?

Basically bc.JavaScript and bc.Cookies are always TRUE for modern browsers but I need more info than that.

Any help would be useful...Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform