asp.net数据库连接中出现以下错误,请帮助我.(50分)

Z

zgzjhy

Unregistered / Unconfirmed
GUEST, unregistred user!
bc30002: 未定义类型"sqldatasetcommand"
源错误:
dim mycommand as sqldatasetcommand
 
sqldatasetcommand??好像没有这个类型。
其次,你要先正确引用名空间namespace="system.data.oledb"
 
我也有相似的问题。
引用了<%@import namespace="system.data"%>
<%@import namespace="system.data.ado"%>
下边dim cna as adoconnection
dim cma as adocommand
编译说我adoconnection,adocommand没定义。
为什么?
 
上面两位,问题是版本差别造成的。正式版中名空间是
System.data.OleDb不是System.data.ADO
SqlDatasetCommand->SqlCommand
AdoConnection->OleDbConnection
AdoCommand->OleCommand
 
应该就是楼上说的情况的.
 
多人接受答案了。
 
顶部