Hi,
I have beed trying to prevent the solpartmenu for users other that host and admin with this code:
<div <%# IIF((UserController.GetCurrentUserInfo()).IsSuperUser,"","style='display:none;visibility:hidden;'") %>>
<dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU" Display="Horizontal" UseRootBreadcrumbArrow="False" UseSubMenuBreadcrumbArrow="False" UseArrows="False" menuitemselcssclass="menuitemsel" rootmenuitembreadcrumbcssclass="rootmenuitembreadcrumb" rootmenuitemactivecssclass="menuitemactive"/>
</div>
I also tried with <%= IIF but doesnt work, I have this error when you login:
"The Controls collection cannot be modified because the control contains code blocks"
Any idea how can I fix this please?
Thanks in advance,
Ed