在C#编程里要怎样才能将String类型赋值给复选框(ListBox)
来源:百度知道 编辑:UC知道 时间:2024/05/22 13:15:43
ListBox1.Items.Add("所要添加的项");
其中ListBox1为ListBox的name或ID
用asp的下拉列表标签,直接绑定就可以了。
<asp:DropDownList ID="drpDepartment" runat="server" >
</asp:DropDownList>