工大后院

 找回密码
 加入后院

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
查看: 1690|回复: 4

asp中编译器错误 (0x800A0400)

[复制链接]
发表于 2008-8-15 14:18 | 显示全部楼层 |阅读模式
Microsoft VBScript 编译器错误 (0x800A0400)
缺少语句
/shujukukechengsheji/shujukukechengsheji/baokandingyuexitong/adminmgz.asp, line 57
=Server.HTMLEncode(MM_keepURL)&
 楼主| 发表于 2008-8-15 14:19 | 显示全部楼层
源代码:
<[email=%@LANGUAGE=]%@LANGUAGE="VBSCRIPT[/email]" CODEPAGE="936"%>
<!--#include file="../Connections/dbconn.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_dbconn_STRING
Recordset1.Source = "SELECT * FROM dbo.consumer"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 10
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="1282" border="1">
  <tr>
    <td width="126" height="20">用户名</td>
    <td width="154">真实姓名</td>
    <td width="154">密码</td>
    <td width="119">性别</td>
    <td width="112">部门号</td>
    <td width="133">联系电话</td>
    <td width="147">联系地址</td>
    <td width="163">报刊订阅种类数</td>
    <td colspan="3"><div align="center">信息变动</div></td>
  </tr>
  <%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
    <tr>
      <td><%=(Recordset1.Fields.Item("Cname").Value)%></td>
      <td><%=(Recordset1.Fields.Item("Crealname").Value)%></td>
      <td><%=(Recordset1.Fields.Item("Cpassword").Value)%></td>
      <td><%=(Recordset1.Fields.Item("Csex").Value)%></td>
      <td><%=(Recordset1.Fields.Item("Dno").Value)%></td>
      <td><%=(Recordset1.Fields.Item("Cphone").Value)%></td>
      <td><%=(Recordset1.Fields.Item("Caddress").Value)%></td>
      <td><%=(Recordset1.Fields.Item("Subscribe").Value)%></td>
      <td width="35"><a href="usermodify.asp?<%=Server.HTMLEncode(MM_keepURL)&
MM_joinChar(MM_keepURL)&"Cname="&
RecordSet1.Fields.Item("Cname").value%>">编辑</a></td>
      <td width="31"><a href="userdelete.asp?<%=Server.HTMLEncode(MM_keepURL)&
MM_joinChar(MM_keepURL)&"Cname="&
RecordSet1.Fields.Item("Cname").value%>">删除</a></td>
      <td width="38"><a href="newuser.asp">新增</a></td>
    </tr>
    <%
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
回复

使用道具 举报

发表于 2008-8-15 19:37 | 显示全部楼层
-----

[ 本帖最后由 xulrmb 于 2008-8-15 19:39 编辑 ]
回复

使用道具 举报

发表于 2008-8-17 23:03 | 显示全部楼层
是否语句结束,检查一下
回复

使用道具 举报

发表于 2008-8-18 01:08 | 显示全部楼层
代码换行要用"_"来连接
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入后院

本版积分规则

QQ|Archiver|手机版|小黑屋|广告业务Q|工大后院 ( 粤ICP备10013660号 )

GMT+8, 2025-5-14 01:24

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表