.net怎么查找repeater中嵌套的repeater中的控件
3个回答
展开全部
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
Repeater rp = Repeater1.Items[e.Item.ItemIndex].FindControl("Repeater2") as Repeater;
}
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
Repeater rp = e.Item.FindControl("Repeater2") as Repeater;
}
{
Repeater rp = Repeater1.Items[e.Item.ItemIndex].FindControl("Repeater2") as Repeater;
}
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
Repeater rp = e.Item.FindControl("Repeater2") as Repeater;
}
追问
是查找第二个repeater中的控件
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询