locked
IIS changing the IE11 document mode from 11 (Default) to 7 (Default) when browsing to a site RRS feed

  • Question

  • User93267240 posted

    I have an ASP .NET application that requires Document Mode to default to IE11. I have set the computer local IE11 browser to default to document mode IE11. The problem I have is when I deploy my ASP .NET site to IIS and browse to the site the Document Mode gets changes back to IE7 Default. Because of this my JavaScript does not work. How do I set the IE11 Document mode to IE11 default when I browse to the site and not change it back to IE7 default?

    Friday, January 31, 2020 11:42 PM

All replies

  • User283571144 posted

    Hi Holdorfs.

    According to your description, I suggest you could use meta tag to achieve your reuqirement.

    You could add below codes in your page's header tag. It will tell the browser to use the IE11.

        <meta http-equiv="X-UA-Compatible" content="IE=11">
    

    Best Regards,

    Brando

    Monday, February 3, 2020 9:08 AM