DropDownList1.DataSource = dt; 获取的DataTable
        DropDownList1.DataTextField = "ItemName"; //dropdownlist的Text的字段
        DropDownList1.DataValueField = "Number";//dropdownlist的Value的字段
        DropDownList1.DataBind();

相关文章: