Force a Sharepoint page into content="IE=edge"
<p>I am using Sharepoint 2010 where I created a simple webpart page. It's using <code>http-equiv=X-UA-Compatible content="IE=10; IE=8"</code> by default. Problem with that is that Bootstrap 3 doesn't support IE10 or IE8 in compatility modes and respondsjs doesn't work either.</p>

<p>Here is what's documented in the Bootstrap documentation page:</p>

<blockquote>
  <p>Bootstrap is not supported in the old Internet Explorer compatibility
  modes. To be sure you're using the latest rendering mode for IE,
  consider including the appropriate  tag in your pages:</p>

<pre><code>&lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
</code></pre>
</blockquote>

<p>Problem with this is that I dont have access to the Sharepoint master page so I can't change this value. I tried adding it in the header of my page but since the master page loads it first it just simply ignores it.</p>

<p>After many hours spent scavenging the net I found a few articles concerning this issue:</p>

<p><a href="http://www.codeproject.com/Articles/667557/Programatically-Change-Page-Headers-Title-Styleshe" rel="nofollow">http://www.codeproject.com/Articles/667557/Programatically-Change-Page-Headers-Title-Styleshe</a> </p>

<p><a href="https://social.msdn.microsoft.com/Forums/office/en-US/7cef975b-a409-48cd-8da9-c5660fa55f11/override-master-page-meta-tags-from-child-page?forum=sharepointdevelopmentprevious" rel="nofollow">https://social.msdn.microsoft.com/Forums/office/en-US/7cef975b-a409-48cd-8da9-c5660fa55f11/override-master-page-meta-tags-from-child-page?forum=sharepointdevelopmentprevious</a></p>

<p><a href="https://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlmeta_properties(v=vs.110).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlmeta_properties(v=vs.110).aspx</a></p>

<p>These articles talk alot about adding/modifying the Page_load() or inputting this script somewhere and it should do the trick. I tried adding this to the top of my page, in the header of my page, under the header of my page, in a content editor webpart, and nothing works. I may be be missing the point of all of this but I am stumped. Since I dont have access to Sharepoint Designer either it makes things a bit trickier for me.</p>

<p>Would anyone have any ideas of what i could do from here?</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    HtmlMeta meta = new HtmlMeta();
    meta.HttpEquiv = "X-UA-Compatible";
    meta.Content = "IE=edge";
    HtmlHead head = Page.Header;
    head.Controls.Add(meta);
}
</code></pre>