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

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

 

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

posted @ 2009-06-25 09:57  静夜品茗  阅读(453)  评论(0编辑  收藏  举报