11 Dec 2009

Repeater,DataList等嵌套如何绑定父repeater字段?

Share

嘿嘿,其实Container有个Parent属性,把它转换为RepeaterItem再取其DataItem

DataBinder.Eval(((System.W

eb.UI.WebControls.Repeat erItem)Container.Parent.Parent.Parent).DataItem

comments powered by Disqus