Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I determine the correct browser version when compatability mode is turned on

I need to determine which version of browser the user is using, however compatibility mode is turned on by default for the entire company.

On the server side script, how do I determine the real browser version?

Thanks

Update I've got my page correctly showing the IE version using document.documentMode, however I can't figure out how to pass this over to the server side so I can use it.

like image 856
Matt Avatar asked Jul 18 '11 03:07

Matt


People also ask

How do I know if IE 11 is in compatibility mode?

1. Click the Settings Icon on the address bar in your web browser. 2. Choose Compatibility View settings.

How do I change browser compatibility?

Step 2: Right-click the Chrome icon and click Properties. Step 3: Navigate directly to the Compatibility tab in the top corner next to Shortcut. Step 5: Click Apply and OK to enable Chrome compatibility mode on your PC.

How do I know if Chrome browser is compatible?

Testing with Chrome Right-click anywhere on the page and click on Inspect to open the developer tools. Click on the Toggle Device Toolbar icon in the top left of the developer tools panel. At the top of the page, you'll see a dropdown. Select Responsive to either enter in any resolution or drag the window to resize.

What is compatibility mode in browser?

Compatibility View is a feature of Windows Internet Explorer 8 that enables the browser to render a webpage nearly identically to the way that Windows Internet Explorer 7 would render it.


1 Answers

Request.Browser will give you complete browser information, where you can check version, browser name, browser type etc.

Request.Browser.Version // Return complete browser version infor
Request.Browser.Browser // If browser is IE then it will return **IE**
like image 127
Muhammad Akhtar Avatar answered Oct 23 '22 04:10

Muhammad Akhtar