[RESOLVED] trouble finding a control

I have this on a control:

<div style="padding: 3px;" id="divPanel">
<asp:Panel ID="pnlComments" runat="server" Visible="false">
<asp:Label ID="lblComments" runat="server" Text="Comments:"></asp:Label>
<asp:TextBox ID="txtComments" runat="server" TextMode="MultiLine" MaxLength="255" Width="320px"></asp:TextBox>
</asp:Panel>
</div>

This control is declared on another control:

<%@ Register Src="~/Controls/Scopes/ScopeActionControl.ascx" TagName="ScopeActionControl"
TagPrefix="uc3" %>

and then used in a table:

<td align="right" valign="top">
<uc3:ScopeActionControl ID="ScopeActionControl1" runat="server" />
</td>

then on a standard page the 'master' control is declared:

<asp:Content ContentPlaceHolderID="contentSummary" runat="server" ID="content1">
<uc1:ScopeSummaryControl ID="scopeSummaryControl" runat="server" />
</asp:Content>

Now on my page_load event I want to find the pnlComments and set it visible under certain conditions. I thought doing this :

scopeSummaryControl.FindControl("ScopeActionControl1").FindControl("pnlComments").Visible = True

Would get me my control, but it seems that it's not even finding ScopeActionControl1.

Any ideas anybody how I can get to the control?
[1490 byte] By [Bill Crawley] at [2007-11-20 11:12:21]
# 1 Re: [RESOLVED] trouble finding a control
Weird. I cleared and recompiled the solution and all started working.
Bill Crawley at 2007-11-9 11:53:56 >