Active Server Pages 错误 'ASP 0138'
来源:百度知道 编辑:UC知道 时间:2024/06/14 02:53:15
本地运行没出现问题但是传到空间上就出现问题了%Active Server Pages 错误 'ASP 0138'
嵌套的 Script 块
/qcw/index2.asp,行 28
Script 块不能放在另一个 Script 块内。
下面是源代码:<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>太平洋汽车网外包专题</title>
<link rel="stylesheet" href="http://www1.pcauto.com.cn/global/2008/css/ztGlobal.css" />
<link href="main.css" rel="stylesheet" type="text/css" />
<script class=" defer" src="http://www.pcauto.com.cn/ssi/js/zt
嵌套的 Script 块
/qcw/index2.asp,行 28
Script 块不能放在另一个 Script 块内。
下面是源代码:<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>太平洋汽车网外包专题</title>
<link rel="stylesheet" href="http://www1.pcauto.com.cn/global/2008/css/ztGlobal.css" />
<link href="main.css" rel="stylesheet" type="text/css" />
<script class=" defer" src="http://www.pcauto.com.cn/ssi/js/zt
问题出现在这一句上:
document.writeln("<script class=\" defer\" src=http://www.pcauto.com.cn/06fz/js/ztheader/index.html><\/script>");
因为本身这一句就是一个script标签的,所以不能将<script>再次放到其中,不管你是使用什么样的语言<script>块是不允许出现嵌套的.就算这样写(这是我遇到的一个错误):
<script type="VBSCRIPT" runat="server">
response.write "<script>alert(""1"");</script>"&vbcrlf
</script>
很明显外层是一个VBS运行在服务端的,要向客户端写入一个JS代码的,所以就直按这样写的,结果出现了一样的错误.
这一错误出现的根本原因是为防止出错,所以不允放出现<script>的嵌套,这只是为了防止,但检查的十分严格,就算一个工作在服务端一个工作在客户端都不行的.
其实解决的办法也是有的,它这个检查是防止<script>出错嵌套,而在运行后的文本流中不出现嵌套就可以了,所以从我的分析中我知道,文本流中不会出现嵌套,我就大胆的不让再检查了.所以更换了一下:
<script type="VBSCRIPT" runat="server">
response.write "<script"&">alert("&quo
什么是Active Server Pages 服务器?
用友 REQUEST SERVER NOT ACTIVE
Active Server Pages, ASP 0126 (0x80004005)
Active Server Pages, ASP 0113 (0x80004005)
Active Server Pages, ASP 0141 (0x80004005)
Active Server Pages, ASP 0129 (0x80004005)
JSP(Java Server Page) And (Active Server Page)
请问:Active Server Pages 错误 'ASP 0113'
Active Server Pages 错误 'ASP 0126'
哪有这本书的中文版!Programming Active Server Pages