Fix Document mode for MSIE

This commit is contained in:
2015-09-28 23:16:41 +02:00
parent 0eeeda0708
commit c6a5e49152

View File

@@ -114,12 +114,12 @@ namespace VAR.Focus.Web.Pages
_head = new HtmlHead(); _head = new HtmlHead();
html.Controls.Add(_head); html.Controls.Add(_head);
_head.Controls.Add(new HtmlMeta { HttpEquiv = "X-UA-Compatible", Content = "IE=Edge" });
_head.Controls.Add(new HtmlMeta { HttpEquiv = "content-type", Content = "text/html; charset=utf-8" }); _head.Controls.Add(new HtmlMeta { HttpEquiv = "content-type", Content = "text/html; charset=utf-8" });
_head.Controls.Add(new HtmlMeta { Name = "author", Content = Globals.Author }); _head.Controls.Add(new HtmlMeta { Name = "author", Content = Globals.Author });
_head.Controls.Add(new HtmlMeta { Name = "Copyright", Content = Globals.Copyright }); _head.Controls.Add(new HtmlMeta { Name = "Copyright", Content = Globals.Copyright });
Assembly asm = Assembly.GetExecutingAssembly(); Assembly asm = Assembly.GetExecutingAssembly();
string version = asm.GetName().Version.ToString(); string version = asm.GetName().Version.ToString();
_head.Controls.Add(new LiteralControl("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />\n"));
_head.Controls.Add(new LiteralControl(String.Format("<script type=\"text/javascript\" src=\"ScriptsBundler?t={0}\"></script>\n", version))); _head.Controls.Add(new LiteralControl(String.Format("<script type=\"text/javascript\" src=\"ScriptsBundler?t={0}\"></script>\n", version)));
_head.Controls.Add(new LiteralControl(String.Format("<link href=\"StylesBundler?t={0}\" type=\"text/css\" rel=\"stylesheet\"/>\n", version))); _head.Controls.Add(new LiteralControl(String.Format("<link href=\"StylesBundler?t={0}\" type=\"text/css\" rel=\"stylesheet\"/>\n", version)));