如何在Repeater里获得服务器控件实例
RepeaterItem里有个linkbutton1, panel1.
linkbutton1的clilk事件里
protected void linkbutton1_Click(object sender, EventArgs e)
{
Panel panContent = Repeater1.FindControl("panel1") as Panel;
.....
}
这样是不行的,找不到panel1. 可能因为Repeater生成了几个panel,不可能都是panel1这ID啊
请问怎么做才能获得那个panel1呢? 谢谢!!!!!!!!