Repeater嵌套了CheckBox,id号怎么做
1个回答
展开全部
<asp:CheckBox ID="cbo_ID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"user_name")%>' />
后台循环
for (int i = 0; i < Repeater1.Items.Count; i++)
{
CheckBox cbo = Repeater1.Rows[i].FindControl("cbo_ID") as CheckBox;
cbo.Visible = false;
}
后台循环
for (int i = 0; i < Repeater1.Items.Count; i++)
{
CheckBox cbo = Repeater1.Rows[i].FindControl("cbo_ID") as CheckBox;
cbo.Visible = false;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询