AFAIK, this is not possible. You can detect the compatibility mode from JS but setting it is not possible to my knowledge.
As for as your problem goes, typically you can use few solutions:
<meta http-equiv="X-UA-Compatible"
content="IE=EmulateIE7">
) in the master page.For example, for IIS7/IIS7.5, you can use web.config
<system.webServer><httpProtocol><customHeaders><remove name="X-UA-Compatible"/><add name="X-UA-Compatible" value="IE=EmulateIE7"/></customHeaders></httpProtocol></system.webServer>
I would suggest #1 or #2 - in case you don‘t have master page or base page class then perhaps its a good time to introduce the both.
How to turn on IE9 Compatibility View programmatically in Javascript,布布扣,bubuko.com
How to turn on IE9 Compatibility View programmatically in Javascript
原文:http://www.cnblogs.com/happy-Chen/p/3629161.html