Information générale
Titre:
Browser Capabilities Problem
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement