Solved

Add new root node to Menu

Posted on 2008-10-10
3
281 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
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 50 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reading the Web.Config using IIS 7.5? 4 49
encoding an href string 2 24
C# LINQ ForEach() question 6 54
Where does legacy ASP.NET initialize language? 2 26
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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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