读书人

为什么DW里梆定ACCESS之后网站就浏览不

发布时间: 2012-02-05 12:07:15 作者: rapoo

为什么DW里梆定ACCESS之后网站就浏览不了了.
无法显示网页
试图访问的网页出现问题,无法显示。

--------------------------------------------

请尝试执行下列操作:

单击刷新按钮,或稍后重试。

打开 localhost 主页,然后查找与所需信息相关的链接。
HTTP 错误 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务

--------------------------------------------

技术信息(用于支持人员)

错误类型:
Active Server Pages, ASP 0126 (0x80004005)
找不到包含文件 'Connections/abc.asp '。
/留言板设计/index.asp, 第 2 行


浏览器类型:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

网页:
GET /留言板设计/index.asp

时间:
2007年5月15日, 18:37:06


详细信息:
Microsoft 支持


为什么我在DW里面梆定的数据库都写着测试成功了.可网页一浏览还是看不到呢


<%@LANGUAGE= "VBSCRIPT " CODEPAGE= "936 "%>
<!--#include file= "Connections/aa.asp " -->
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject( "ADODB.Recordset ")
Recordset1.ActiveConnection = MM_aa_STRING
Recordset1.Source = "SELECT * FROM admin "
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>
<!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>
aa
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>


[解决办法]
对于表名或字段名为系统保留字的,需要加[]


--try

SELECT * FROM [admin]

读书人网 >Access

热点推荐