|
|
|
當(dāng)前的位置 >> 返回首頁 >> 解決方案 |
|
軟件制作中Repeater控件三層嵌套 |
|
發(fā)布者:西安軟件公司 發(fā)布時間:2022/8/15 閱讀:次 |
|
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { //假設(shè)在第一層里面嵌套了一個名叫Repeater2 的 var temp = e.Item.FindControl("Repeater2") as Repeater; temp.ItemDataBound += new RepeaterItemEventHandler(temp_ItemDataBound); } void temp_ItemDataBound(object sender, RepeaterItemEventArgs e) { //假設(shè)在第二層里面嵌套了一個名叫Repeater3的 var temp = e.Item.FindControl("Repeater3") as Repeater; temp.ItemDataBound += new RepeaterItemEventHandler(temp_ItemDataBound1); } void temp_ItemDataBound1(object sender, RepeaterItemEventArgs e) { //..以此類推 }
|
|