Repeater里查找控件

Repeater里查找控件:   

for(int i=0;i<Repeater1.Items.Count;i++)
   {
    Label l = (Label)this.Repeater1.Items[i].FindControl("xs");
     AdminInfo info2 = (AdminInfo)ainfoAL[i];
    l.Text = info2.RegTime.ToShortDateString();
    //l.Text = i.ToString();

   }

原文地址:https://www.cnblogs.com/xiaosky/p/Repeater.html