locked
Conditional statements in Master Pages RRS feed

  • Question

  • Anyone,
       I'm using a custom menu on all the sites using the master pages.
    I applied a web part to render the aspmenu on the master page between the PlaceHolderHorizontalNav.
    My question: I would like to apply a conditional statement so that if sites that doesn't need to use the dynamic menu will use the default menu.

    <%@ Register Tagprefix="dynaMenu" Namespace="DynamicMenu" Assembly="DynamicMenu, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6cc342bddc378977" %>

    ....

    <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
       <dynaMenu:DynamicMenu Set_MenuList="DynamicMenu" runat="server" __WebPartId="{D7135A82-C8EC-4D95-BD37-42843EE4E67D}">     </dynaMenu:DynamicMenu>
    </asp:ContentPlaceHolder>
    .......


    M Sariman RKO Business Solutions Inc.

    Tuesday, June 12, 2012 5:21 PM

Answers