
Signature
Regards,
Fred Chateau
fchateauAtComcastDotNet
Fred,
Usually user controls (as well as web controls) do not expose internal
control structure, but rather public properties/methods that allow
manipulating them - the internal structure of the controls should not be
known or relied upon by the consumers.
> I am trying to access a user control class, for a user control that is
> loaded dynamically, from the containing page. I have been able to access Web
[quoted text clipped - 20 lines]
> I need to set a property of the user control for data access, but this is a
> far as I've been able to go.
Fred Chateau - 08 Aug 2007 08:10 GMT
That is exactly what I am trying to do. I want to expose the user control's
internal properties as public properties of the user control class, but I do
not know how to get a reference to the user control class from the
containing page. I can get a reference to the Web controls in the user
control, but after exposing public properties of the Web controls in the
user control class, how do I get a reference to the user control class
itself?

Signature
Regards,
Fred Chateau
fchateauAtComcastDotNet
> Fred,
>
[quoted text clipped - 30 lines]
>> a
>> far as I've been able to go.
Fred Chateau - 08 Aug 2007 09:35 GMT
I found it. I needed to add the <%@ reference control="~/ControlName.ascx"
%> directlve to the page.

Signature
Regards,
Fred Chateau
fchateauAtComcastDotNet
> That is exactly what I am trying to do. I want to expose the user
> control's internal properties as public properties of the user control
[quoted text clipped - 39 lines]
>>> is a
>>> far as I've been able to go.