Collection Properties, Child Items and Page and Parent References in ASP.NET Custom Controls
Posted by: Rick Strahls WebLog,
on 13 May 2006 |
View original
I'm running into some problems with a custom control I'm workign on that includes a collection property. The collection contains child controls (well DataBindingItems) and I have all of the collection loading and display logic working just fine.
However, I'm running into a problem where the Collection items need a reference back to the Page object and the parent control and I can't figure a way to reliably do this.
Here's the collection property defined inside of the control:
/////...