编译器错误信息: BC30002: 未定义类型“SQLConnection”。
源错误:
行 12:
行 13: Dim DS As DataSet
行 14: Dim MyConnection As SQLConnection
行 15: Dim MyCommand As SQLDataSetCommand
行 16:
源文件: D:\net调试\test6.aspx 行: 14
...全文
10013打赏收藏
小问题,在线等。。。
编译器错误信息: BC30002: 未定义类型“SQLConnection”。 源错误: 行 12: 行 13: Dim DS As DataSet 行 14: Dim MyConnection As SQLConnection 行 15: Dim MyCommand As SQLDataSetCommand 行 16: 源文件: D:\net调试\test6.aspx 行: 14
MyConnection = New SQLConnection("server=localhost;uid=sa;pwd=;database=pubs")
'MyCommand = New SQLDataSetCommand("select * from Titles where type='" 'Category.SelectedItem.Value + "'", myConnection)
---->
MyCommand= New SqlCommand("select * from .....",myConnection)
DS = new DataSet()
MyCommand.FillDataSet(DS, "Titles")
Sub SubmitBtn_Click(Sender As Object, E As EventArgs)
Dim DS As DataSet
Dim MyConnection As SQLConnection
Dim MyCommand As SQLDataSetCommand
MyConnection = New SQLConnection("server=localhost;uid=sa;pwd=;database=pubs")
MyCommand = New SQLDataSetCommand("select * from Titles where type='" + Category.SelectedItem.Value + "'", myConnection)
DS = new DataSet()
MyCommand.FillDataSet(DS, "Titles")
编译器错误信息: BC30002: 未定义类型“SQLDataSetCommand”。
源错误:
行 13: Dim DS As DataSet
行 14: Dim MyConnection As SQLConnection
行 15: Dim MyCommand As SQLDataSetCommand
行 16:
行 17: MyConnection = New SQLConnection("server=localhost;uid=sa;pwd=;database=pubs")