以下是引用zerocn在2007-8-1 17:06:18的发言:
问题依然存在.(难道我的编译器问题?)请你下在我的源文件试下编译有没有问题。(源文件在一楼)
我模仿你的修改了下
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data Source=f:\\data\\image.mdb");
DataSet ds = new DataSet();
OleDbDataAdapter adp = new OleDbDataAdapter("Select * From Dv_User",conn);
adp.Fill(ds,"Dv_User");
DataGrid1.DataSource = ds;
DataGrid1.DataMember = "Dv_User";
DataGrid1.DataBind();
DataSet ds = new DataSet();
OleDbDataAdapter adp = new OleDbDataAdapter("Select * From Dv_User",conn);
adp.Fill(ds,"Dv_User");
DataGrid1.DataSource = ds;
DataGrid1.DataMember = "Dv_User";
DataGrid1.DataBind();
问题依然存在.(难道我的编译器问题?)请你下在我的源文件试下编译有没有问题。(源文件在一楼)
请按红色部分这样试一下~~~~
OleDbConnection oleConn = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data Source=f:\\data\\image.mdb");
OleDbDataAdapter oleAdaper = new OleDbDataAdapter();
oleAdaper.SelectCommand = new OleDbCommand("Select * From Dv_User",oleConn);
DataSet ds = new DataSet();
oleAdaper.Fill(ds,"Dv_User");
DataGrid1.DataMember = "Dv_User";
DataGrid1.DataBind();
[此贴子已经被作者于2007-8-1 17:25:15编辑过]
Knowledge is infinite.