ASP Classic中的vbscript语法 [英] vbscript syntax in asp classic
本文介绍了ASP Classic中的vbscript语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个vb脚本,我想在asp的< head>
中运行.我在运行脚本时遇到了麻烦,因此我想我需要一些帮助,以确保ASP知道它是vvbscript或其他内容.最后一个脚本是我在运行时遇到的问题.
I have a vbscript that I want to run in the <head>
of an asp. I am having trouble getting the script to run so I'm thinking I need some help making sure the asp knows that it's vvbscript or something. The last script is the one I am having trouble running.
这是我所拥有的:
<%@ Language=VBScript %>
<%
***vbscript***
%>
<HTML>
<HEAD>
<link rel="stylesheet" href="MD_intstyle.css" type="text/css">
<SCRIPT Language="JavaScript">
***javascript***
</script>
<script language="vbscript">
***vbscript I am trying to run***
</script>
</HEAD>
推荐答案
更改:
<script language="vbscript">
***vbscript I am trying to run***
</script>
收件人:
<%
***vbscript I am trying to run***
%>
AS(erver)P在服务器上运行,因此您不能告诉客户端将代码作为带有HTML标签的vbscript运行.使用开始标记<%和结束标记%>来启动ASP代码.就像在示例中放在顶部一样.
AS(erver)P runs on the server and therefore you cant tell the client to run the code as vbscript with HTML-tags. Start your ASP code with the start tag <% and the close tag %>. Just as you do on the top in your example.
这篇关于ASP Classic中的vbscript语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文