W
Wayne Wengert
I have an aspx page which contains a datalist, which in turn, is populated
with checkboxes based on the contents of a SQL table (see code below). I
want a routine to go through all the checkboxes in this set and determine
which ones the user checked. I know I've seen some nice tight routines to do
this but I had no luck Googling for it.
================== Code ======================
<aspataList ID="DataList1" runat="server" DataKeyField="Interest"
RepeatColumns="4" DataSourceID="SqlDataSource1"
CellSpacing="2" SelectedIndex="0" Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
HorizontalAlign="Left" RepeatDirection="Horizontal" ShowFooter="False"
ShowHeader="False" Height="248px" Width="448px">
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval("Interest") %>'
/>
</ItemTemplate>
</aspataList>
with checkboxes based on the contents of a SQL table (see code below). I
want a routine to go through all the checkboxes in this set and determine
which ones the user checked. I know I've seen some nice tight routines to do
this but I had no luck Googling for it.
================== Code ======================
<aspataList ID="DataList1" runat="server" DataKeyField="Interest"
RepeatColumns="4" DataSourceID="SqlDataSource1"
CellSpacing="2" SelectedIndex="0" Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
HorizontalAlign="Left" RepeatDirection="Horizontal" ShowFooter="False"
ShowHeader="False" Height="248px" Width="448px">
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval("Interest") %>'
/>
</ItemTemplate>
</aspataList>