Solved

Add new root node to Menu

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 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