入门问题

cmslovehxh 2003-11-21 06:49:40
<%@ language=jscript%>
<html>

<head>

<title>Exercise</title>
</head>

<body>
<% response.write("hello!girl") %>
</body>

</html>
为什么错了呢?
...全文
76 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
cmslovehxh 2003-11-23
  • 打赏
  • 举报
回复
因为JScript是区分大小写的!
N1rvana 2003-11-21
  • 打赏
  • 举报
回复
Response的R在JScript时,一定要大写。。
N1rvana 2003-11-21
  • 打赏
  • 举报
回复
<%@ language="jscript"%>
...........
<% response.write("hello!girl"); %>

如果还有问题就检查你的IIS吧,代码不会再有问题了。
wofeiwofei 2003-11-21
  • 打赏
  • 举报
回复
加一句,<% %>默认的就是vbscript
wofeiwofei 2003-11-21
  • 打赏
  • 举报
回复
<%@ language=vbscript%>
<html>

<head>

<title>Exercise</title>
</head>

<body>
<% response.write "hello!girl" %>

</body>

</html>
可能是jscript和vbscript的混用问题吧。
injoo 2003-11-21
  • 打赏
  • 举报
回复
Response 要大写啊!!
hpj2002 2003-11-21
  • 打赏
  • 举报
回复
<% Response.write("hello!girl") %>
cmslovehxh 2003-11-21
  • 打赏
  • 举报
回复
<%@ language=jscript%>
<html>

<head>

<title>Exercise</title>
</head>

<body>
<% Response.write("hello!girl") %>
</body>

</html>
这样就就可以了。可是为什么呢?我不懂!
tommyhuanglei 2003-11-21
  • 打赏
  • 举报
回复
呵呵,是response是服务器端的对象,应该用客户端的!document.write("girls");
ydh1981 2003-11-21
  • 打赏
  • 举报
回复
还要把<%@ language=jscript%>删去,你用的是VBSCRIPT
cmslovehxh 2003-11-21
  • 打赏
  • 举报
回复
to 木口兄
<%@ language=jscript%> //jscript
<% response.write("hello!girl") %> //vbscript
response不是asp的对象吗?
xyzoem2 2003-11-21
  • 打赏
  • 举报
回复
<%@ language=jscript%> //jscript
<% response.write("hello!girl") %> //vbscript
孟子E章 2003-11-21
  • 打赏
  • 举报
回复
<% Response.Write("hello!girl") %>
Struggling 2003-11-21
  • 打赏
  • 举报
回复
<%@ language=vbscript%>
<html>
<head>
<title>Exercise</title>
</head>

<body>
<% response.write("hello!girl")%>
</body>
</html>
Struggling 2003-11-21
  • 打赏
  • 举报
回复
<%
response.write "hello!girl"
%>

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧