日期:2014-05-18  浏览次数:20450 次

提交后如何遍历Repeater 中的 CheckBox ????
......

<tr>
  <td bgcolor="#F4F4F4" style="height: 25px" colspan="4">
  <asp:Repeater ID="oneList" runat="server" OnItemDataBound="OneList_ItemDataBound">
  <HeaderTemplate>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  </HeaderTemplate>
  <ItemTemplate>
  <td valign="top">
  <strong><font color="#FF0000">⊙&nbsp;<%# DataBinder.Eval(Container.DataItem,"title")%></font></strong>
  <asp:Label ID="oneId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"id") %>'
  Visible="false"></asp:Label>
  <asp:Repeater ID="towList" runat="server">
  <HeaderTemplate>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  </HeaderTemplate>
  <ItemTemplate>
  <tr>
  <td width="4%" height="22">
  &nbsp;&nbsp;</td>
  <td width="96%" colspan="2">
  <asp:CheckBox ID="chkId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"id") %>'>
  </asp:CheckBox>
  <font color="#000099"><strong>
  <%# DataBinder.Eval(Container.DataItem,"title")%>
  </strong></font>
  </td>
  </tr>
  </ItemTemplate>
  <FooterTemplate>
  </table></FooterTemplate>
  </asp:Repeater>
  </td>
  </ItemTemplate>
  <FooterTemplate>
  </tr> </table>
  </FooterTemplate>
  </asp:Repeater>
  </td>
  </tr>
  <tr>
  <td height="30" colspan="4" align="center" bgcolor="#F4F4F4">
  <asp:Button ID="Button1" runat="server" OnClick="