A
andrew.douglas11
Hello all,
Is it possible to share controls inside a child repeater? Here's the
situation: I have a web page that needs to display data grouped by A,
and alternatively by B (only one grouping displayed at a time through
Panel.Visible). A and B both share common child data: C. I have 2
parent repeaters corresponding to A and B, and each of those repeaters
have 1 child repeater containing child data C. Presently, my code
handles databinding on these repeaters just fine. However, there are
asp.net controls embedded inside the repeater items of the child
repeater (C). I'd like to have the page set up so that when the user
switches between viewing A and B, the controls in the child repeaters
share the same values. What's the best way to accomplish this?
The controls in the child repeater can be given the same "id"
attribute, but they still operate as separate controls. Also, I tried
to simply do away with B and its child, and have logic in the
OnItemDataBind event of the parent repeater display the information
corresponding to the currently-active view. The initial display
works, but when I re-bind the parent repeater, it of course destroys
the child repeater and its controls.
Any suggestions would be greatly appreciated!
Andy
Is it possible to share controls inside a child repeater? Here's the
situation: I have a web page that needs to display data grouped by A,
and alternatively by B (only one grouping displayed at a time through
Panel.Visible). A and B both share common child data: C. I have 2
parent repeaters corresponding to A and B, and each of those repeaters
have 1 child repeater containing child data C. Presently, my code
handles databinding on these repeaters just fine. However, there are
asp.net controls embedded inside the repeater items of the child
repeater (C). I'd like to have the page set up so that when the user
switches between viewing A and B, the controls in the child repeaters
share the same values. What's the best way to accomplish this?
The controls in the child repeater can be given the same "id"
attribute, but they still operate as separate controls. Also, I tried
to simply do away with B and its child, and have logic in the
OnItemDataBind event of the parent repeater display the information
corresponding to the currently-active view. The initial display
works, but when I re-bind the parent repeater, it of course destroys
the child repeater and its controls.
Any suggestions would be greatly appreciated!
Andy