我是用Delphi写的,代码很简单,相信大家都能看懂!!procedure TWebForm1.Page_Load(sender: System.Object; e: System.EventArgs);
var
 ds:DataSet;
 dt:DataTable;
 SqlDA:OleDbDataAdapter;
begin
  sqlda:=OleDbDataAdapter.Create('Select * from Product','Provider="Microsoft.Jet.OLEDB.4.0";Data Source="'+'E:\data.mdb'+'";Persist Security Info=True;Password=');//连接数据文件,并传入查询语句
  ds:=DataSet.Create;
  sqlDa.Fill(ds,'Product');
  dt:=ds.Tables['Product'];
  DataList1.DataSource:=dt.DefaultView;
  DataList1.DataKeyField:='p_name';
  DataList1.DataBind;
end;为什么页面在运行时候,页面上的DataList没有显示?  DataList的属性我一个都没有设置。都是默认值。如果换成DataGrid来显示数据话就没有问题。