特别迷惑:vbscrip脚本语言全能在asp代码内运行吗?
tonl8 2004-02-08 01:49:30 我学了一段时间了,也写了一些东西,但有个基本问题一直是迷惑,我发现很多VBSCRIPT脚本在ASP代码内无法运行
例如:
<html>
<body>
<script language="vbscript">
window.location.href="www.cnzy.net"
</script>
</html>
</body>
这个能正常运行,不会出错,但是:
<html>
<body>
<script language="vbscript">
window.location.href=<%request.ServerVariables("HTTP_REFERER")%>
</script>
上面是勘在脚本内运行,出错
<%
window.location.href=request.servervariables("http_referer")
%>
这个同样的也出错还有在脚本内定义的过程,在ASP代码内无法调用
<script language="vbscript">
sub mm_onclick()
msgbox "欢迎您!"
end sub
</script>
<%call mm%>这一句又出错
</html>
</body>
请问高手,是不是脚本内本身是不是不能套用ASP,而ASP也不允许套用某些脚本啊,谢谢