CSS Friendly and SiteMap

Last post 07-15-2008 9:02 AM by ashkant. 2 replies.

Sort Posts:

  • CSS Friendly and SiteMap

    06-05-2008, 4:26 PM
    • Loading...
    • dpig62
    • Joined on 03-20-2007, 2:14 AM
    • Posts 11

    Hi,

       I'm new to CSS Friendly Control and have spent some good time on this issue, hope someone can help me out.

       Issue: I have a Menu control that databind to SiteMapDataSource. On the Web.Sitemap, if I leave the root node to blank or not set any properties, the CSS Friendly Adapter will render and detect 0 MenuItem on the BuildItems(Control.Items, true, writer);  and the Menu item(s) not show on the browser.

    example web.sitemap

    <?xml version="1.0" encoding="utf-8" ?>

    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

    <siteMapNode>  <!-- Parent Node  -->

    <siteMapNode url="~/index.aspx" title="Home"  description="" />

    <siteMapNode url="~/sitemap.aspx" title="Site Map" />

    <siteMapNode url="~/aboutus.aspx" title="About Us" />

     

    </siteMapNode>

    </siteMap>

    On the Menu control, I set StaticMenuLevel to 2, Orientation = Horizonal.

    On the SiteMapDataSource, I set the "ShowStartingNode" = False

    My question, is the parent node has to be set and invalid if it leaves blank? If no, how can I make the Menu visible on the browser?

     

    Hope someone can help.

    Thanks

  • Re: CSS Friendly and SiteMap

    07-01-2008, 1:06 PM
    • Loading...
    • jfkrueger
    • Joined on 02-27-2006, 7:58 PM
    • Posts 87

    I'm having the same issue, how can i get it to work so that I don't have to show the first node?

  • Re: CSS Friendly and SiteMap

    07-15-2008, 9:02 AM
    • Loading...
    • ashkant
    • Joined on 06-10-2008, 7:32 AM
    • Posts 157

    use a page that you don't want to show in menu for the starting node and then set starting node to false. i use login.aspx for starting node.

    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />

     and my sitemap is like bellow:

    <siteMapNode url="Login.aspx" title="Login" description="">

    others...

    </siteMapNode>

     

    Please remember to click “Mark as Answer” on the post that helps you
Page 1 of 1 (3 items)
Microsoft Communities
Page view counter