这是 Global.asax 中代码的一部分 我在下面标记的行上收到运行时错误(无效代码)。想不通为什么?
If Not Request.RawUrl.IndexOf("crm/default.aspx") > 0 Then
Dim sb As New System.Text.StringBuilder
sb.Append("<DIV ID=""splashScreen"" STYLE=""WIDTH: 100%; HEIGHT: 100%; POSITION: absolute; Z-INDEX: 9999"">")
sb.Append("<TABLE class=""page_border"" width=""100%"" height=""100%"" cellSpacing=""0"" cellPadding=""0"">")
sb.Append("<TR>")
sb.Append("<TD WIDTH=""100%"" HEIGHT=""100%"" ALIGN=""CENTER"" VALIGN=""MIDDLE"" class=""page_content"">")
sb.Append(" ")
sb.Append("Loading page. Please wait ...")
sb.Append(" <br><br>")
sb.Append("<IMG SRC=""/TOrders/library/media/images/wait.gif"" BORDER=1 WIDTH=75 HEIGHT=15>")
sb.Append("</TD>")
sb.Append("</TR>")
sb.Append("</TABLE>")
sb.Append("</DIV>")
-- Getting a Run time Error on this line --------
sb.Append("<script language=""javascript"">var k=document.getElementById(""splashScreen"");</script>")
---Even this line appears with squiggly line in the editor--
sb.Append("<%Response.Flush%>")
-----------------------------------------------------
Response.Write(sb.ToString)
End If