table: (userid int identifier(1,1) primary key , username varchar(20));string sql = "select userid , username from user_table";
System.Data.OleDb.OleDbConnection cnn = new System.Data.OleDb.OleDbConnection(".....");
System.Data.OleDb.OleDbDataAdapter custDA = new System.Data.OleDb.OleDbDataAdapter(sql , cnn);
System.Data.DataSet custDS = new System.Data.DataSet();
custDA.Fill(custDS);DropDownList1.DataSource = custDS.Tables[0];
DropDownList1.DataTextField = "username";
DropDownList1.DataValueField = "userid";
DropDownList1.DataBind();