大家看看这是什么错误。

mars2000 2002-06-20 09:01:36
<%@import namespace="system.data"%>
<%@import namespace="system.data.ado"%>
<html>
<head>
<script language="vb" runat="server">
sub page_load(sender as object,e as eventargs)
dim myconnection as ADOConnection
dim mydataset as new dataset
dim ssql as string
dim myconnstr as string="provider=microsoft.jet.oledb.4.0;data source="&server.mappath("customers.mdb")



myconnection=new adoconnection(myconnstr)

ssql="select * from customers"
dim mydscommand as adodatasetcommand=new adodatasetcommand(ssql,myconnection)
mydscommand.filldataset(mydataset,"customers")
mytable=mydataset.tables("customers")
end sub
</script>
</head>


错误信息: BC30002: Type 'adodatasetcommand' is not defined.
我装了
Microsoft Data Access Components 2.7,下在的论坛也正常运行

...全文
87 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
bigrongshu 2002-06-20
  • 打赏
  • 举报
回复
可能是imports的问题吧

你用的是beta版吧
yunhi 2002-06-20
  • 打赏
  • 举报
回复
你用的是Beat2版的还是正式版的?
正是版的namespace应该是:System.Data.OleDb
...
dim myconnection as OleDbConnection
...
dim mydscommand as OleDbCommand=new OleDbCommand(ssql,myconnection)
...

1,979

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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