主题:求助:怎么测试不成功呢?
下面是我写的程序和错误提示,可绑定数据苦,设置了显示区后,还显示不了呢?
[b]这是我写的程序[/b]
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Connections/bookdata.asp" -->
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_bookdata_STRING
Recordset1_cmd.CommandText = "SELECT * FROM book"
Recordset1_cmd.Prepared = true
Set Recordset1 = Recordset1_cmd.Execute
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>
<div align="center">
<h1>留言板
</h1>
</div>
<br />
我要留言 管理员登陆
<% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
<table width="765" border="1">
<tr>
<td width="205">留言者昵称:<%=(Recordset1.Fields.Item("userid").Value)%></td>
<td width="544">留言时间:<%=(Recordset1.Fields.Item("addtime").Value)%> QQ:<%=(Recordset1.Fields.Item("qq").Value)%> Email:<%=(Recordset1.Fields.Item("email").Value)%><br />
留言内容:<%=(Recordset1.Fields.Item("content").Value)%></td>
</tr>
<tr>
<td>回复者昵称:<%=(Recordset1.Fields.Item("replynich").Value)%></td>
<td>回复时间:<%=(Recordset1.Fields.Item("replytime").Value)%><br />
回复内容:<%=(Recordset1.Fields.Item("reply").Value)%></td>
</tr>
<tr>
<td>网友感言:</td>
<td>感言内容:<%=(Recordset1.Fields.Item("gentie").Value)%></td>
</tr>
</table>
<% End If ' end Not Recordset1.EOF Or NOT Recordset1.BOF %>
<br />
<% If Recordset1.EOF And Recordset1.BOF Then %>
暂无内容
<% End If ' end Recordset1.EOF And Recordset1.BOF %>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
[color=FF0000][b]这是提示[/b][/color]
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x668 Thread 0x460 DBC 0x1095024 Jet'。
/Connections/留言板.asp, 第 9 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /Connections/留言板.asp
[b]这是我写的程序[/b]
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Connections/bookdata.asp" -->
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_bookdata_STRING
Recordset1_cmd.CommandText = "SELECT * FROM book"
Recordset1_cmd.Prepared = true
Set Recordset1 = Recordset1_cmd.Execute
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>
<div align="center">
<h1>留言板
</h1>
</div>
<br />
我要留言 管理员登陆
<% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
<table width="765" border="1">
<tr>
<td width="205">留言者昵称:<%=(Recordset1.Fields.Item("userid").Value)%></td>
<td width="544">留言时间:<%=(Recordset1.Fields.Item("addtime").Value)%> QQ:<%=(Recordset1.Fields.Item("qq").Value)%> Email:<%=(Recordset1.Fields.Item("email").Value)%><br />
留言内容:<%=(Recordset1.Fields.Item("content").Value)%></td>
</tr>
<tr>
<td>回复者昵称:<%=(Recordset1.Fields.Item("replynich").Value)%></td>
<td>回复时间:<%=(Recordset1.Fields.Item("replytime").Value)%><br />
回复内容:<%=(Recordset1.Fields.Item("reply").Value)%></td>
</tr>
<tr>
<td>网友感言:</td>
<td>感言内容:<%=(Recordset1.Fields.Item("gentie").Value)%></td>
</tr>
</table>
<% End If ' end Not Recordset1.EOF Or NOT Recordset1.BOF %>
<br />
<% If Recordset1.EOF And Recordset1.BOF Then %>
暂无内容
<% End If ' end Recordset1.EOF And Recordset1.BOF %>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
[color=FF0000][b]这是提示[/b][/color]
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x668 Thread 0x460 DBC 0x1095024 Jet'。
/Connections/留言板.asp, 第 9 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /Connections/留言板.asp