Solved

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

Posted on 2010-11-08
3
468 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you that worked perfectly!!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now