怎么获取repeater里面的控件ID

2024-12-17 10:02:36
推荐回答(1个)
回答1:

protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
foreach (RepeaterItem re in Repeater1.Items)
{
Label l = re.FindControl("控件ID") as Label;
}
}