绑定控件方法 public static void Bind_DropDownList(string sqlstr,DropDownList templist) { DataTable dt1=data.GetDataTable_oracleclient(sqlstr); foreach(DataRow row in dt1.Rows) { templist.Items.Add(row[0].ToString ()); } dt1.Dispose(); }