I have a Repeater control that has a list of strings as a datasource. Each string is in a row along with a checkbox. What is needed to make a checked checkbox call a method? Right now, I am using OnCheckedChange, as seen below.
<asp:Repeater ID="rptDiffReport" runat="server" >
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<div style="clear: both; text-align: left; margin: 10px"
runat="server" Visible="<%# (Container.ItemIndex+1) == 0 %>">
</div>
<%# Container.DataItem %>
<asp:CheckBox ID="chkRow" runat="server"
OnCheckedChange="rptSelectRow" Checked="false"
AutoPostBack="true" CssClass="checkbox" />
<br />
<hr />
</ItemTemplate>
...
Aucun commentaire:
Enregistrer un commentaire