I have a Repeater nested in another Repeater. For clarity, we'll refer to them as ParentRepeater
and ChildRepeater
. I need to get a value from ParentRepeater
in ChildRepeater
. How can I do this?
在子转发器项中,第一个NamingContainer是转发器,第二个是父转发器项。
<%# DataBinder.Eval(((RepeaterItem)Container.NamingContainer.NamingContainer).DataItem, "Name") %>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.