[Mono-list] Problem with browser detection

Hubert FONGARNAND hubertf-1@altern.org
Tue, 22 Feb 2005 15:05:40 +0100


The previous message was a fake...
this method is well implemented... but mono looks for my browscap.ini in =
a bad=20
place : /usr/etc/mono/1.0/
I had to do a : cp /usr/etc/mono/browscap.ini /usr/etc/mono/1.0/browscap.=
ini
and it works!


Le Mardi 22 F=E9vrier 2005 11:31, Hubert FONGARNAND a =E9crit=A0:
> the method :
> 	string buttineur=3Dthis.Request.Browser.Browser.ToString();
> always return "Unknown"
>
> if I take a look on the HttpBrowserCapabilities.cs class, I could see
> easyly that this function isn't implemented :
>
> 		public string Browser {
> 			get {
> 				if (!Get (HaveBrowser)) {
> 					Set (HaveBrowser);
> 					browser =3D this ["browser"];
> 					if (browser =3D=3D null)
> 						browser =3D "Unknown";
> 				}
>
> 				return browser;
> 			}
> 		}
>
> Could someone help me on how to implement it...
> This function is very important if you want to implement compatibility
> between IE and FireFox...

--=20
Hubert FONGARNAND
Fiducial IT
_______________________________________________
Ce message et les =E9ventuels documents joints peuvent contenir des infor=
mations confidentielles.
Au cas o=F9 il ne vous serait pas destin=E9, nous vous remercions de bien=
 vouloir le supprimer et en aviser imm=E9diatement l'exp=E9diteur. Toute =
utilisation de ce message non conforme =E0 sa destination, toute diffusio=
n ou publication, totale ou partielle et quel qu'en soit le moyen est for=
mellement interdite.
Les communications sur internet n'=E9tant pas s=E9curis=E9es, l'int=E9gri=
t=E9 de ce message n'est pas assur=E9e et la soci=E9t=E9 =E9mettrice ne p=
eut =EAtre tenue pour responsable de son contenu.