Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recognizing the browser
Message
De
12/01/2015 14:05:15
 
 
À
12/01/2015 13:29:44
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01613449
Message ID:
01613453
Vues:
68
This message has been marked as the solution to the initial question of the thread.
The framework only returns what the browser says. It changed in IE11.

>I had to adjust my code to recognize the browser like this:
>
>
>        ' Based on the browser
>        Select Case oBrowser.Browser
>
>            ' Microsoft Internet Explorer
>            ' Recent version of Internet Explorer returns InternetExplorer (11)
>            Case "InternetExplorer", "IE"
>
>
>At first, I had IE. That used to work for a few years. Then, I discovered the value returned was InternetExplorer. So, I adjusted for that. I assumed something got changed in the .NET Framework in the way this is now returned. But, actually, this is coming from the browser information and .NET Framework simply use that as is. So, I had to add IE back in there. Basically, it seems the longer word is returned from recent version of Internet Explorer only. Can someone confirm that?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform