I have some JQuery in a SharePoint webpart and it is not loading properly using the Quirks Mode with IE8. It works fine with IE8 Compatibility mode. it also works great using IE7 or IE8 Standard mode but that messes up the CSS on the custom master page we are using. It works fine using Google Chrome and works fine using Out of the Box SharePoint Master Page. So i thought i should turn on the compatibility mode of IE8 since that is the best way i could think of. How can I turn on the IE8 Compatibility Mode using C# or JavaScript?
i tried using tag and set it to IE=EmulateIE7 but that just turns it to quirks mode i want it also set to compatibility mode