作者:ddddd6192010_808 | 来源:互联网 | 2023-06-10 21:49
IdliketousenestedrepeatersthatsharethesameXMLdatasourcewheretheparentrepeaterpasses
I'd like to use nested repeaters that share the same XML datasource where the parent repeater passes down the datasource to the child repeater so it doesn't need to re-access the datasource for every dataitem in the parent repeater.
我想使用共享相同XML数据源的嵌套转发器,其中父转发器将数据源传递给子转发器,因此它不需要为父转发器中的每个数据项重新访问数据源。
XPATH for Parent Repeater: "/AdpDeselection/Documents/Document[@type='A']/Funds/Fund[@cuspid='1234']"
父转发器的XPATH:“/ AdpDeselection / Documents / Document [@ type ='A'] / Funds / Fund [@ cuspid ='1234']”
What would I put for the DataSource attribute in the child Repeater in the code below?
我将在下面的代码中为子Repeater中的DataSource属性添加什么?
I'd prefer not have to use an OnItemDataBound because I don't think it needs it but I guess I could be wrong.
我不想使用OnItemDataBound因为我不认为它需要它但我想我可能是错的。
<%# XPath("@name")%>
<%# XPath("@ticker")%>
XML Structure...
FUND NUMBER ONE
FUND NUMBER TWO
FUND NUMBER THREE
FUND NUMBER FOUR
1 个解决方案