|
|
|
当前的位置 >> 返回首页 >> 解决方案 |
|
软件制作中Repeater控件三层嵌套 |
|
发布者:西安软件公司 发布时间:2022/8/15 阅读:次 |
|
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { //假设在第一层里面嵌套了一个名叫Repeater2 的 var temp = e.Item.FindControl("Repeater2") as Repeater; temp.ItemDataBound += new RepeaterItemEventHandler(temp_ItemDataBound); } void temp_ItemDataBound(object sender, RepeaterItemEventArgs e) { //假设在第二层里面嵌套了一个名叫Repeater3的 var temp = e.Item.FindControl("Repeater3") as Repeater; temp.ItemDataBound += new RepeaterItemEventHandler(temp_ItemDataBound1); } void temp_ItemDataBound1(object sender, RepeaterItemEventArgs e) { //..以此类推 }
|
|