adapter 有好几中重载方式 其中有一条是这样的: dataAdapter.Fill(dataSet,interger,integer,"table")
可编译器怎么说 "参数"太多 这是怎么''''''''?
sub MyQueryMethod()
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source="& server.mappath("db1.mdb") &""
Dim dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)
Dim queryString As String = "SELECT [注册表].* FROM [注册表]"
Dim dataAdapter As System.Data.IDbDataAdapter
dataAdapter = New System.Data.OleDb.OleDbDataAdapter(queryString,dbConnection)
Dim dataSet As System.Data.DataSet = New System.Data.DataSet
dataAdapter.Fill(dataSet,viewstate("startpage")*viewstate("pagesize"),viewstate("pagesize"),"注册表")
datagrid1.datasource=dataSet.tables(0)
datagrid1.databind()
getpages()
End sub