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

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

  1. Doen’t work. System reports an error –
    Type ‘System.Web.UI.WebControls.LoginView’ does not have a public property named ‘meta’.

    Troubleshoot issues with Microsoft SharePoint

    1. My Bad, due to the forgetting the closing the error was thrown. Also, should you cut and paste the code be sore to change those goofy quotes to regular quotes that code expects.

      thanks for the tip!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s