I
Imran Aziz
Hello All,
I have added html checkboxes in each row of the repeater control that I
draw on the page. Now when I wan to find out if the check boxes have been
checked or not, I cannot seem to access them. Can anyone please guide me how
to access child items in a repeater control.
Here is my code.
<ASP:Repeater id="lstOtherRepeater" runat="server" >
<HeaderTemplate>
<Table width="100%" >
</HeaderTemplate>
<ItemTemplate>
<tr >
<td>
<input id="chkChannelID" type="checkbox" value="<%#
DataBinder.Eval(Container.DataItem, "nChannelID") %>"/><a
href="showitems.aspx?nChannelID=<%# DataBinder.Eval(Container.DataItem,
"nChannelID") %>" ><%# DataBinder.Eval(Container.DataItem, "sChannelTitle")
%></a>
</td>
</tr>
<tr >
<td>
<%# DataBinder.Eval(Container.DataItem, "sChannelDescription")%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</Table>
</FooterTemplate>
</ASP:Repeater>
Imran.
I have added html checkboxes in each row of the repeater control that I
draw on the page. Now when I wan to find out if the check boxes have been
checked or not, I cannot seem to access them. Can anyone please guide me how
to access child items in a repeater control.
Here is my code.
<ASP:Repeater id="lstOtherRepeater" runat="server" >
<HeaderTemplate>
<Table width="100%" >
</HeaderTemplate>
<ItemTemplate>
<tr >
<td>
<input id="chkChannelID" type="checkbox" value="<%#
DataBinder.Eval(Container.DataItem, "nChannelID") %>"/><a
href="showitems.aspx?nChannelID=<%# DataBinder.Eval(Container.DataItem,
"nChannelID") %>" ><%# DataBinder.Eval(Container.DataItem, "sChannelTitle")
%></a>
</td>
</tr>
<tr >
<td>
<%# DataBinder.Eval(Container.DataItem, "sChannelDescription")%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</Table>
</FooterTemplate>
</ASP:Repeater>
Imran.