What you desire is really a misuse of a control. You should not build a control such that is expects its parent to have some property or control. Instead, build the control in a way that it can accept in formation it requires. Then in your page, you should tell that control about the necessary data. Not only is this the more correct way of doing control development, but it's actually a bit easier and less likely to cause problems.
|