Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recognizing the browser
Message
From
12/01/2015 14:05:15
 
 
To
12/01/2015 13:29:44
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01613449
Message ID:
01613453
Views:
70
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform