DreamweaverMX做asp页面的问题?
acqy 2003-10-18 03:36:55 我用dreamweaver做了一个asp页面,本来应该支持数据库的。可是我创建了数据库对象和动态数据集对象后,新建一个动态表格,通过浏览器浏览就出问题:
本页无法显示
试图访问的网页出现问题,无法显示。
--------------------------------------------------------------------------------
请尝试以下方法:
单击 刷新按钮或者梢候再试。
打开 localhost 主页,然后查找与所需信息相关的链接。
HTTP 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务
--------------------------------------------------------------------------------
技术信息(适用于支持人员)
错误类型:
Microsoft JET Database Engine (0x80004005)
/ByteArt/index.asp, 第 8 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SALT 1.0.4223.1 0111 Developer; .NET CLR 1.1.4322)
页:
GET /ByteArt/index.asp
时间:
2003年10月18日, 15:21:32
详细信息:
Microsoft 支持
我的源代码是这样的内容:
1:<%@LANGUAGE="VBSCRIPT"%>
2:<!--#include file="Connections/dbNews.asp" -->
3:<%
4:Dim rsNews
5:Dim rsNews_numRows
6:
7:Set rsNews = Server.CreateObject("ADODB.Recordset")
8:rsNews.ActiveConnection = MM_dbNews_STRING
9:rsNews.Source = "SELECT NewsDateTime, NewsTitle FROM News ORDER BY NewsDateTime DESC"
10:rsNews.CursorType = 0
11:rsNews.CursorLocation = 2
12:rsNews.LockType = 1
13:rsNews.Open()
14:
15:rsNews_numRows = 0
16:%>
17:<%
18:Dim Repeat1__numRows
19:Dim Repeat1__index
20:
21:Repeat1__numRows = 6
22:Repeat1__index = 0
23:rsNews_numRows = rsNews_numRows + Repeat1__numRows
24:%>
25:<HTML>
26:<HEAD>
//....以下省略
include文件是这样的:
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
Dim MM_dbNews_STRING
MM_dbNews_STRING = "Provider=Microsoft.Jet.OleDb.4.0; Data source=./dbs/news.mdb"
%>