SharePoint Tip of the Day – X-UA-Compatible IE Edge / IE8 and anonymous audience


Ie_edge_sp2010

As some might now, switching the IE rendering mode to IE=Edge on your SharePoint master page might bring unexpected issue

But for mostly anonymous audience, it might be neat to have it while retaining the classic IE=8 mode for contributors.

In order to quickly toggle between IE Edge mode and IE 8 mode depending on the audience I relied on a LoginView :

    <asp:LoginView runat=”server”>
        <anonymoustemplate>
            <meta http-equiv=”X-UA-Compatible” content=”IE=Edge” />
        </anonymoustemplate>
        <LoggedInTemplate>
            <meta http-equiv=”X-UA-Compatible” content=”IE=8″ />
        </LoggedInTemplate>
    </asp:LoginView>

Simple and codeless. The contributors will work in IE8 mode (no issue with the people picker, calendar, dialog, etc.) while the final audience will see the (publishing) site in the freshest mode depending on their IE version.

Next step, finally implementing the dual master page solution from Johan Leino to remove the fat from these bloated master pages.

Advertisements