Hello Vince,
No, I meant that expose the data, not the controls. If you have a datagrid
in user control for example, then expose the data property to have the data
for binding the datagrid. not the datagrid.
But if y need to have access to the control directly then use FindControl
method for this with control clientID
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
V> On Mar 27, 11:39 am, Michael Nemtsev [MVP] <nemt...@msn.com> wrote:
V>
>> Hello Vince,
>>
[quoted text clipped - 27 lines]
>> V> Are there any neat ways of doing this?
>> V>
V> So i would expose control B datagrid via a property, and then create
V> a function in control A code behind to say something like
V> ControlBDataGridSet(dataGrid)?
V>
V> This seems silly. What If I had to access many controls?
V>
V> Also, i make it a habbit never to use session.
V>
V> Surely there would be a better way for something this common.
V>
V> If not then so be it.
V>
V> Thanks anyway
V>