AspMenu - Multiple Separator Images?

Discussion in 'ASP .Net Web Controls' started by Vijay, Aug 11, 2006.

  1. Vijay

    Vijay Guest

    Hi

    Is it possible to have different separator images for different levels of
    menu in an ASPMENU?

    Right now i am specifying the separator image for the menu items as
    follows -

    StaticBottomSeparatorImageUrl="<url of the image>"

    We want to have a different images for 1st level and 2nd level menu items
    (The design of the website is such that it requires this) . How can this be
    done programmatically?

    Thanks.

    Vijay

    My Menu code - (its being used in Sharepoint 2007)

    <SharePoint:AspMenu runat="server"
    datasourceID="SiteMapDS"
    orientation="Vertical"
    StaticDisplayLevels="1"
    MaximumDynamicDisplayLevels="0"
    StaticSubMenuIndent="1"
    ItemWrap="true"
    AccessKey="3"
    CssClass="leftNav"
    SkipLinkText="<%$Resources:cms,masterpages_skiplinktext%>"
    StaticBottomSeparatorImageUrl="../../SiteCollectionImages/SitePrimary/leftnav_separator.gif">
    <LevelMenuItemStyles>
    <asp:MenuItemStyle CssClass="leftNav1" Font-Underline="False" />
    <asp:MenuItemStyle CssClass="leftNav2" Font-Underline="False" />
    <asp:MenuItemStyle CssClass="leftNav3" Font-Underline="False" />
    </LevelMenuItemStyles>
    <DynamicHoverStyle CssClass="leftNavFlyOutsHover"/>
    <DynamicMenuStyle CssClass="leftNavFlyOuts" />
    <StaticSelectedStyle Font-Bold="True" ForeColor="White" />
    <DynamicMenuItemStyle CssClass="leftNavFlyOutsItem"/>
    <StaticHoverStyle CssClass="leftNavHover"/>
    </SharePoint:AspMenu>
    Vijay, Aug 11, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Javier
    Replies:
    5
    Views:
    1,017
    Gunnar Hjalmarsson
    Jan 16, 2004
  2. Kevin Spencer

    Re: Separator in panel

    Kevin Spencer, Aug 20, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    419
    Kevin Spencer
    Aug 20, 2003
  3. DC Gringo
    Replies:
    3
    Views:
    6,129
    mikeb
    Aug 19, 2004
  4. =?Utf-8?B?KioqKiBLaXRlT3JlZ29uICoqKio=?=

    ASPMenu

    =?Utf-8?B?KioqKiBLaXRlT3JlZ29uICoqKio=?=, Jan 28, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    453
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Jan 29, 2007
  5. =?Utf-8?B?cGlja2VkYW5hbWU=?=

    aspmenu require click to activate

    =?Utf-8?B?cGlja2VkYW5hbWU=?=, Mar 5, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    693
    =?Utf-8?B?cGlja2VkYW5hbWU=?=
    Mar 6, 2007
Loading...

Share This Page