I have a CheckBoxList with 10 checkboxes in it. Only 3 of the checkboxes can be checked. I need to be able to go through the list of checkboxes and put the ones that are checked into variables. Here's my CheckBoxList:
<asp:CheckBoxList ID="clbGameTags" runat="server" RepeatDirection="Horizontal" Width="851px">
<asp:ListItem Value="SinglePlayer">Single Player</asp:ListItem>
<asp:ListItem Value="MultiPlayer">Multi Player</asp:ListItem>
<asp:ListItem Value="Action">Action</asp:ListItem>
<asp:ListItem Value="Adventure">Adventure</asp:ListItem>
<asp:ListItem Value="Racing">Racing</asp:ListItem>
<asp:ListItem Value="Simulation">Simulation</asp:ListItem>
<asp:ListItem Value="RPG">RPG</asp:ListItem>
<asp:ListItem Value="FPS">FPS</asp:ListItem>
<asp:ListItem Value="RTS">RTS</asp:ListItem>
<asp:ListItem Value="MMO">MMO</asp:ListItem>
</asp:CheckBoxList>
Aucun commentaire:
Enregistrer un commentaire