遍历Repeater中某个控件并修改控件属性

foreach (Control c in this.rptList.Controls)
{
      Label lbEd = (Label)c.FindControl("lbEd");
      lbEd.Visible = true;
}

遍历Repeater中的Lable,设置是否显示

原文地址:https://www.cnblogs.com/mahongbo/p/1510696.html