string source="Provider=MSDAORA;User ID=system;Data Source=smiles;password=smiles";
OleDbConnection conn=new OleDbConnection(source);
conn.Open();
string sql="select * from user123";
OleDbDataAdapter da=new OleDbDataAdapter(sql,conn);
DataSet ds=new DataSet();
da.Fill(ds);
DataGrid1.DataSource=ds;
this.DataBind();
这个是webform下的