Hello
I've written a little aspx page that show a pb with IE7

public class Default : Page
{
protected System.Web.UI.HtmlControls.HtmlForm form1;
protected System.Web.UI.WebControls.Label textBox1;


protected override void OnInit(System.EventArgs a)
{
this.Load+=this.OnLoad;
Console.WriteLine("bonjour");
}


protected void OnLoad(object o,System.EventArgs a)
{
textBox1.Text="Version :"+Request.Browser.Version+" "+Request.Browser.Browser;
}



}

When i load the page with IE7 : Mono show : Version:  Unknown
With MS.NET 1.1 it show IE7

I've notified that browsercaps.ini has entries for IE7
([Mozilla/4.0 (compatible; MSIE 7.0b; *Windows XP*.NET CLR*)*])

but with ethereal (wireshark) i've seen that the new string is ([Mozilla/4.0 (compatible; MSIE 7.0; *Windows XP*.NET CLR*)*])

Here's the patch for browscap.ini

Thanks to commit!

Index: mono/data/browscap.ini
===================================================================
--- mono/data/browscap.ini      (révision 64676)
+++ mono/data/browscap.ini      (copie de travail)
@@ -13397,6 +13397,40 @@
platform=WinXP
netclr=True

+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 5.1*)*]
+parent=IE 7.0
+platform=WinXP
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 5.1*.NET CLR*)*]
+parent=IE 7.0
+platform=WinXP
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 5.2*)*]
+parent=IE 7.0
+platform=Win2003
+netclr=True
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 5.2*.NET CLR*)*]
+parent=IE 7.0
+platform=Win2003
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 6.0*)*]
+parent=IE 7.0
+platform=WinVI
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 6.0*.NET CLR*)*]
+parent=IE 7.0
+platform=WinVI
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows XP*)*]
+parent=IE 7.0
+platform=WinXP
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows XP*.NET CLR*)*]
+parent=IE 7.0
+platform=WinXP
+netclr=True
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Default Browser

[*]

_______________________________________________
Ce message et les éventuels documents joints peuvent contenir des informations confidentielles.
Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite.
Les communications sur internet n'étant pas sécurisées, l'intégrité de ce message n'est pas assurée et la société émettrice ne peut être tenue pour responsable de son contenu.
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to