Solved

Add new root node to Menu

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 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