Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Browser Name is showing as Firefox when i am using IE11

$
0
0

Hi All,

when I am trying to get browser name using below code on Windows 8.1 and IE11, it is showing as "Firefox". Why ?

Thanks.

Code:

        Response.Write(Request.ServerVariables["HTTP_USER_AGENT"]);
        HttpBrowserCapabilities bc = Request.Browser;
       
   
        Response.Write("<p>Browser Capabilities:</p>");
        Response.Write("Type = " + bc.Type + "<br>");
        Response.Write("Name = " + bc.Browser + "<br>");
       Output:

Mozilla/5.0 (Windows NT 6.3; Win64; x64; Trident/7.0; rv:11.0) like Gecko/20100101 Firefox/12.0

Browser Capabilities:

Type = Firefox12.0
Name = Firefox
Version = 12.0
Major Version = 12

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>