foreach (ListItem list in cblColor.Items)
{
if (list.Selected == true)
{
productColor += list.Value + "|";
}
}
---checkBoxList控件
<asp:Label ID="Label2" runat="server" Width="144px" ForeColor="Red"></asp:Label>
<asp:CheckBoxList ID="cblColor" runat="server" RepeatColumns="5">
<asp:ListItem>红</asp:ListItem>
<asp:ListItem>蓝</asp:ListItem>
<asp:ListItem>绿</asp:ListItem>
<asp:ListItem>黑</asp:ListItem>
<asp:ListItem>白</asp:ListItem>
</asp:CheckBoxList>
5668



被折叠的 条评论
为什么被折叠?



