Solved

Add new root node to Menu

Posted on 2008-10-10
3
277 Views
Last Modified: 2012-05-05
I am using Visual Web Developer 2008 Express Edition.

I have added a Menu on my Master Page. I want to modify the XML Site Map in such a way that it displays items like this:

Administration
          Item Master
          Party Master
Tasks
         New Bill
        Stock Entry

I have created the Administration part, but not following how to add Tasks part.
<?xml version="1.0" encoding="utf-8" ?>

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

    <siteMapNode url="" title="Administration"  description="">

        <siteMapNode url="" title="Item Master"  description="" />

        <siteMapNode url="" title="Party Master"  description="" />

    </siteMapNode>

  

</siteMap>

Open in new window

0
Comment
Question by:rpkhare
  • 2
3 Comments
 
LVL 8

Expert Comment

by:tiagosalgado
Comment Utility
Next to Administration node, add a new one:
 

<siteMapNode url="" title="Administration"  description="">

        <siteMapNode url="" title="Item Master"  description="" />

        <siteMapNode url="" title="Party Master"  description="" />

    </siteMapNode>

<siteMapNode url="" title="Tasks"  description="">

        <siteMapNode url="" title="New Bill"  description="" />

        <siteMapNode url="" title="Stock Entry"  description="" />

    </siteMapNode>

Open in new window

0
 
LVL 8

Author Comment

by:rpkhare
Comment Utility
It is giving following error:

Exactly one <siteMapNode> element is required directly inside the <siteMap> element.
0
 
LVL 8

Accepted Solution

by:
tiagosalgado earned 50 total points
Comment Utility
You are putting the node in correct position.
Here you have what you need
 

<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="Administration" description=""> <siteMapNode url="" title="Item Master" description="" /> <siteMapNode url="" title="Party Master" description="" /> </siteMapNode> 

<siteMapNode url="" title="Tasks"  description="">

        <siteMapNode url="" title="New Bill"  description="" />

        <siteMapNode url="" title="Stock Entry"  description="" />

    </siteMapNode>

</siteMap> 

Open in new window

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now