I have a master page in Sitecore using sublayout:
<sc:Sublayout id="slTop" runat="server" Path="...">
I would like to access a control inside this sublayout from layout page (.aspx) that uses the same master page. I have tried something like
Master.FindControl("slTop").FindControl("htmlControl")
but it returns null, possibly because the controls are not public.
Master.FindControl("slTop").Controls
is also empty.
I would like to hide this control. Is it possible?