Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7744985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:54:02+00:00 2026-06-01T09:54:02+00:00

For IE7 users, I want to put in some specific Please upgrade now banner.

  • 0

For IE7 users, I want to put in some specific “Please upgrade now” banner. I thought i had this but i found out my banner was popping up on people who had IE8 but had compatibility mode turned on by default.

Is there anyway to differentiate between these two situations so I can change my message from:

Please update from IE7 to You are using IE8 but you are using compatibility mode, please switch this off

Here is the code that i am using now in my View:

You are using <b><% = Request.Browser.Browser + ", Version: " + Request.Browser.Version%>

but if I test in IE8 with compatability view, by using the above code or this code on the client side:

<!--[if lte IE 7]>

it returns true and shows up as IE7. How can i differentiate the two ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:54:03+00:00Added an answer on June 1, 2026 at 9:54 am

    According to user-agents.org and some of the discussion linked by other answers, you can differentiate between the three cases by checking the user agent string you’ve received.

    • For MSIE 7.0: Check for MSIE 7.0 and the lack of Trident

      For example: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; .NET CLR 2.0.50727)

    • For MSIE 8.0 in compatability mode: Check for MSIE 7.0 and the presence of Trident/4.0

      For example: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1;Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)

    • For MSIE 8.0 in standard mode: Check for MSIE 8.0

      For example: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)

    To perform these checks, consult the following tutorial, replacing all of this nonsense about iPhones and mobile devices with the browsers you’re checking for. 🙂

    Best of luck with your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to only allow users with IE8 (not IE6, IE7) or another browser
I want to redirect a IE7 user, but window.location.href does not seen to work
A number of our users have just upgraded from IE6 to IE7. the upgreaded
For IE7 and IE8, I am capturing some JSONp to use in my webpage.
I'm having some IE7 (and presumably IE6) issues with the script. <script type=text/javascript> $(document).ready(function(){
This line of code is working fine for Firefox $(#<%=txt1.ClientID%>).text() but not for IE8
I have a webpage that I only want a specific group to log into.
Yet another IE is doing something different from other browsers question but this is
We have some html that looks like this: <form id=MyUserControl runat=server method=post> <script language=javascript
I know this is crazy, but IE can drive one to do crazy things.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.