下面代码动态设置浏览器文档模式
HtmlHead head = (HtmlHead)Page.Header; HtmlMeta contentType = new HtmlMeta();//显示字符集的设定 设定页面使用的字符集 contentType.HttpEquiv = "X-UA-Compatible"; contentType.Content = "IE=Edge"; head.Controls.AddAt(0, contentType);