以下三行,我认为是用于将数据库中的一些数据构建到 xml 树中。代码位于文档的头部,但在 IE10 中,当它呈现到页面时,它会呈现在正文中。仅在 IE10 中。有任何想法吗?我难住了!
<xml id="questionsXML">
<%=questionsXMLDOM.xml%>
</xml>
</head>
<%
// Open a database for use in drawing the body HTML
var db = OpenDatabase();
if (!db)
{
Response.Write("Error opening database");
Response.End();
}
var filtersQuery = "SELECT id, name FROM filters WITH (NOLOCK) "
+ "WHERE (report_id=" + SQLEncode(reportID) + " OR (report_id=0 AND test_battery_id=" + SQLEncode(tbid) + ") )"
+ "AND is_saved<>0 AND is_deleted=0 AND is_visible=1 "
+ "ORDER BY name ASC";
var filtersRS = db.Execute(filtersQuery);
%>
<body topmargin="0" leftmargin="0" rightmargin="0" scroll="no" onload="BodyOnLoad()" style="background:#ffffff;">