欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Repeater的FooterTemplate中控件內(nèi)容設(shè)置方法

 更新時(shí)間:2009年12月16日 22:53:14   作者:  
Repeater的FooterTemplate中控件內(nèi)容設(shè)置方法,需要的朋友可以參考下。
Repeater中FooterTemplate并無FindControl方法,也無法將FooterTemplate轉(zhuǎn)成RepeaterItem,雖然在Repeater的ItemDataBound事件中,RepeaterItemEventArgs參數(shù)用if (e.Item.ItemType == ListItemType.Footer)可判別出這個(gè)Footer,但其他時(shí)候不行。

目前找到的方法如下:

復(fù)制代碼 代碼如下:

((Literal)rep2.Controls[rep2.Controls.Count - 1].FindControl("rep2Sum")).Text = ss.ToString();


我在FooterTemplate放了一個(gè)Literal。
也就是說FooterTemplate是Repeater控件中的最后一個(gè)控件。

相關(guān)文章

最新評(píng)論