repeater理由有个checkbox。我为什么明明由check,但就得到的checked都是false
repeater理由有个checkbox。我为什么明明由check,但就得到的checked都是false
下面代码:
前面:
<asp:Repeater ID= "Repeater1 " runat= "server ">
<ItemTemplate>
<table style= "border-right: #000000 1px solid; border-top: #000000 1px solid; border-left: #000000 1px solid; border-bottom: #000000 1px solid ">
<tr>
<td>
<asp:CheckBox ID= "chDel " runat= "server " Text= ' <%#DataBinder.Eval(Container.DataItem, "uploadPicId ") %> ' />
</td>
</tr>
<tr>
<td>
Title: <%#DataBinder.Eval(Container.DataItem, "title ")%>
</td>
</tr>
<tr>
<td>
Name: <%#DataBinder.Eval(Container.DataItem, "name ")%>
</td>
</tr>
<tr>
<td>
Time: <%#DataBinder.Eval(Container.DataItem, "time ") %>
</td>
</tr>
<tr>
<td>
<asp:Image ID= "imgPic " runat= "server " ImageUrl= ' <%#DataBinder.Eval(Container.DataItem, "uploadPicSmall ") %> ' />
</td>
</tr>
</table>
<br />
</ItemTemplate>
</asp:Repeater>
后台:
for (int &n