For example what if I am trying to hide a custom navigation control what can I place in another webcontrol to conditionally hide the label something like this
<mycontrol:hidethis id=mycontrol1 runat="server">
<mycontrol:mynavi runat="server"/>
</mycontrol:hidethis>
Thanks
Your question is wide open, there could be a few ways to hide your control.
One very simple way to do it is in the PreRender of the navigation control’s parent – just set the
Visibleproperty of the nav control to false (if the right conditions are met). If coded correctly (i have to say that, sometimes people code stupidly 🙂 then the Visible property will be propagated to all the child controls of the nav control, and none of them will get rendered to the output stream.