0

これは 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("&nbsp;&nbsp;")
            sb.Append("Loading page.  Please wait ...")
            sb.Append("&nbsp;&nbsp;<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
4

1 に答える 1