S
sorCrer
Hi All,
Posted after extensive searching!
I have a nested repeater control as follows: (Simplified ;-))
<table>
<asp:repeater id=parent onItemDataBound=createChild>
<tr><td>Level 1</td></tr>
<asp:repeater id=child>
<tr id=childrow><td>Level 2</td></tr>
</asp:repeater>
</asp:repeater>
</table>
They are both created from a SQL query. I would simply like to not
display the child if the parent meets a condition. I would therefore
like to add a style="display: none;" attribute to the row 'childrow'.
How can I access the child of the parent in the onItemDataBound event,
which is when it gets created? I can access anything outside the child
repeater but not inside it.
(As a side issues all ID's are dynamically created at databind time
for use with Javascript etc.)
Help would be much appreciated!
Thanks
John Sourcrer
Posted after extensive searching!
I have a nested repeater control as follows: (Simplified ;-))
<table>
<asp:repeater id=parent onItemDataBound=createChild>
<tr><td>Level 1</td></tr>
<asp:repeater id=child>
<tr id=childrow><td>Level 2</td></tr>
</asp:repeater>
</asp:repeater>
</table>
They are both created from a SQL query. I would simply like to not
display the child if the parent meets a condition. I would therefore
like to add a style="display: none;" attribute to the row 'childrow'.
How can I access the child of the parent in the onItemDataBound event,
which is when it gets created? I can access anything outside the child
repeater but not inside it.
(As a side issues all ID's are dynamically created at databind time
for use with Javascript etc.)
Help would be much appreciated!
Thanks
John Sourcrer