绑定
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=" + Server.MapPath(".\App_Data\mydatabase.mdb"));
string Sql = "SELECT * FROM Class ORDER BY Taxis,Id DESC";
OleDbDataAdapter cmd = new OleDbDataAdapter(Sql, conn);
DataSet ds = new DataSet();
cmd.Fill(ds,"Class");
this.DropDownList1.DataSource = ds.Tables["Class"].DefaultView;
DropDownList1.DataTextField = "Name";//绑定显示名称的字段
DropDownList1.DataValueField = "Id";//绑定值的字段
DropDownList1.DataBind();
OleDbConnection conn