Solved

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

Posted on 2010-11-08
3
474 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tool Box 2 35
Runtime Exceptions when trying to submit data 28 37
Replace &lt; with < 14 57
ASP.net Javascript use multiple sliders 2 20
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

20 Experts available now in Live!

Get 1:1 Help Now