For IE7 users, I want to add a specific banner, "Please upgrade now." I thought I had it, but I found out that my banner appears on those who had IE8, but compatibility mode was turned on by default.
Is there a difference between the two situations, so I can change my message:
Upgrade from IE7 to . You are using IE8 but using compatibility mode, please disable it
Here is the code I'm using now in my view:
You are using <b><% = Request.Browser.Browser + ", Version: " + Request.Browser.Version%>
but if I test in IE8 with a compatibility view using the code above or this client-side code:
<!--[if lte IE 7]>
it returns true and is displayed as IE7. How can I distinguish two?
source share