Solved

site map datasource not displaying for asp:menu control in vs2010

Posted on 2010-11-08
3
475 Views
Last Modified: 2012-05-10
I'm trying to insert an asp:menu control on my master page in visual studio 2010 and I'm using a web.sitemap file as my datasource.  However, when I try to select a new datasource on the menu drop down list nothing appears for me to choose.  Why is this happening and how do I fix it?
0
Comment
Question by:rk1999
  • 2
3 Comments
 

Author Comment

by:rk1999
ID: 34088686
The following print screen is what I'm referring too.  The data source type should show site map and/or xml file but instead nothing displays.  Also I'm attaching my code for my sitemap
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
  <siteMapNode url="~/" title="Home" description="Home">
    <siteMapNode url="~/Default.aspx" title="Home" description="Go to the homepage" />
    <siteMapNode url="~/Reviews/Default.aspx" title="Reviews" description="Reviews published on this site">
      <siteMapNode url="~/Reviews/AllByGenre.aspx" title="By Genre" description="All Reviews Grouped by Genre" />
      <siteMapNode url="~/Reviews/All.aspx" title="All Reviews" description="All Reviews" />
    </siteMapNode>
    <siteMapNode url="~/About/Default.aspx" title="About" description="About this Site">
      <siteMapNode url="~/About/Contact.aspx" title="Contact Us" description="Contact Us" />
      <siteMapNode url="~/About/AboutUs.aspx" title="About Us" description="About Us" />
    </siteMapNode>
    <siteMapNode url="~/Login.aspx" title="Login" description="Log in to this web site" />
  </siteMapNode>
</siteMap>

Open in new window

printScreen.doc
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 500 total points
ID: 34089031
Actually you need to drop SiteMapDataSource on the page from ToolBox->under DataTab.
Then you will be able to see all DataSources on that page.
http://www.kodyaz.com/articles/aspnet-menu-control-using-sitemaps.aspx
0
 

Author Closing Comment

by:rk1999
ID: 34089098
Thank you that worked perfectly!!
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

772 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