绑定DropDownList

        DropDownList1.DataSource = dt; 获取的DataTable

        DropDownList1.DataTextField = "ItemName"; //dropdownlist的Text的字段

        DropDownList1.DataValueField = "Number";//dropdownlist的Value的字段

        DropDownList1.DataBind();

你可能感兴趣的:(list)