protected void rpg_Main_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item | e.Item.ItemType == ListItemType.AlternatingItem)
{
Repeater rpt_Min = (Repeater)e.Item.FindControl( "rpt_Main ");
rpt_Min.ItemCommand += new RepeaterCommandEventHandler(rpt_Min_ItemCommand);
}
}
public void rpt_Min_ItemCommand(object source, RepeaterCommandEventArgs e)
{
Alert( " ");
}
------解决方案--------------------------------------------------------
不知你嵌套要做什么功能呢!
可以直接绑定啊...它绑定会自动产生ItemDataBound事件的
------解决方案--------------------------------------------------------
rpt_Min.ItemCommand += new RepeaterCommandEventHandler(rpt_Min_ItemCommand);
==========
应该放在
ItemCreated事件里