【问题标题】:How to get checkboxid which is placed inside the repeater control from the codebehind side?如何从代码隐藏端获取放置在转发器控件内的 checkboxid?
【发布时间】:2011-03-29 14:44:16
【问题描述】:

让我们假设 sample.aspx 是一个页面 此页面包含以下中继器

<asp:Repeater ID="Repeater1" runat="server">
 <ItemTemplate>
  <tr><td>
   <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# container.dataitem("CUISINENAME")%>' />
  </td></tr>    
 </ItemTemplate>                       
</asp:Repeater>

我的问题是“在单击服务器端的提交按钮时, 我必须找到放置在Repeater控件内的checkboxid。 有人帮我解决这个问题吗?

【问题讨论】:

    标签: asp.net repeater findcontrol


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2012-02-18
    • 1970-01-01
    • 1970-01-01
    • 2013-03-17
    • 1970-01-01
    • 2013-02-10
    • 1970-01-01
    • 2014-04-10
    相关资源
    最近更新 更多