R
rn5a
I have a user control page named MyUC.ascx which has a Panel control
This Panel, in turn, has a TextBox. Next I use this user control in an
ASPX page named MyPage.aspx by registering the user control using the
following Register directive in the ASPX page
<%@ Register TagPefix="UC" TagName="UControl" Src="MyUC.ascx" %>
<form runat="server">
<UC:UControl ID="uc1" runat="server"/>
</form>
Now if I am not mistaken, the hierarchy of the controls in the ASPX
page would be
Page
Form
User Control
Panel
TextBox
As per the above hierarchy diagram, the TextBox is a member of the
Panel's Controls Collection but isn't the TextBox also a member of the
Page's Controls Collection here?
This Panel, in turn, has a TextBox. Next I use this user control in an
ASPX page named MyPage.aspx by registering the user control using the
following Register directive in the ASPX page
<%@ Register TagPefix="UC" TagName="UControl" Src="MyUC.ascx" %>
<form runat="server">
<UC:UControl ID="uc1" runat="server"/>
</form>
Now if I am not mistaken, the hierarchy of the controls in the ASPX
page would be
Page
Form
User Control
Panel
TextBox
As per the above hierarchy diagram, the TextBox is a member of the
Panel's Controls Collection but isn't the TextBox also a member of the
Page's Controls Collection here?