?
Solved

Add new root node to Menu

Posted on 2008-10-10
3
Medium Priority
?
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:tiagosalgado
ID: 22685501
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
ID: 22687480
It is giving following error:

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

Accepted Solution

by:
tiagosalgado earned 150 total points
ID: 22687530
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

771 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