Questions tagged [sitemapprovider]

ASP.NET System.Web.SiteMapProvider class that provides a common base class for all site map data providers, and a way for developers to implement custom site map data providers that can be used with the ASP.NET site map infrastructure as persistent stores for SiteMap objects.

The StaticSiteMapProvider and XmlSiteMapProvider classes represent the default implementations of the abstract SiteMapProvider class. The XmlSiteMapProvider uses an XML file named Web.sitemap to store site map data.

The SiteMapProvider class supports the concept of a site map provider hierarchy, by declaring the RootProvider and ParentProvider properties. A SiteMapProvider can be a child or parent of another provider. This enables scenarios where different content areas of a site are owned or implemented by different development groups that maintain their own site maps and site map providers.

http://msdn.microsoft.com/en-us/library/system.web.sitemapprovider.aspx

80 questions
2
votes
2 answers

MVC SiteMap Provider - can anybody post a sample that works with dynamic nodes?

It is a very simple scenario: public class StockItemController : Controller { public ActionResult Index(int categoryId) { /// ... } } Sample routes: /StockItem?categoryId=1 // should be "Beverages" /StockItem?categoryId=1 // should…
StanB
  • 29
  • 3
2
votes
1 answer

Asp.Net MVC SiteMap - siteMapNode: How to redirect to Controller ActionResult

I have a simple menu based on a standard xml sitemap, that when a link is clicked I want it to post to a controller actionresult that does not have a view/page. I don't seem to have a problem when I have a view or page or other website for the url…
2
votes
1 answer

SiteMapPath Stops Displaying in ASP.NET 4

We have a SiteMapPath control on the page and this is bound to an XML Web.sitemap file with the default provider. We've had this site for years and have recently upgraded to ASP.NET 4.0 on IIS 7.5 on Windows 2008 R2. For some reason, after about…
John Fager
  • 452
  • 1
  • 4
  • 16
2
votes
1 answer

Dynamic sitemap from database doesn't display the nodes

I have implemented this https://github.com/maartenba/MvcSiteMapProvider/wiki/Defining-sitemap-nodes-using-IDynamicNodeProvider Edit: this is my class public class MyDynamicNodeProvider : DynamicNodeProviderBase { public override…
touinta
  • 971
  • 3
  • 10
  • 26
2
votes
1 answer

Sitemap provider error

Hi, I am not able to detect this error. I checked in the web.config file and there is no sitemap tag. Where should I be looking for this. Can someone point me in the right direction The SiteMapProvider 'SamplesSiteMap' cannot be found. …
2
votes
1 answer

How to model this navigation scenario with efficient Route and ASP.NET Sitemap?

i need to model the following scenario, but I can't get it working with the MvcSitemapProvider (i think my problem also maps directly to the default SiteMapProvider). I want to get the default breadcrumbs control to work properly with my dynamic…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
2
votes
1 answer

Why is my menu not showing at all when Security Trimming is enabled

My complete menu system is not showing when Security Trimming is enabled... I have enabled security Trimming in Web.config as follows ...
2
votes
1 answer

ASP.Net TreeView control on MasterPage isn't always populated

I'm working on my first ever ASP.Net project, and I seem to have been thrown in the deep end right away. All of my site files are stored in a database, so I'm using a VirtualPathProvider to access them. That part works well, but then I needed a…
user175751
1
vote
0 answers

Use different site maps in an EXT TreePanel

This is the ASP.NET snippet: And this is the C# code behind it: tpPanel.Root.Add(this.CreateNode(SiteMap.RootNode, user.IsAdmin, user.UserPrivilege)); The CreateNode…
hardmax
  • 435
  • 1
  • 8
  • 15
1
vote
1 answer

How to configure multiple sitemaps with asp:menu control

It's driving me nuts. I've searched and tried and searched and tried ... now I ask for your help! I have an asp:menu control that uses a sitemap. Once the user is authenticated, I want to dynamically change the site map from code behind (c#). Here's…
Bob
  • 79
  • 3
  • 13
1
vote
1 answer

Problems with using ImageUrl DynamicNodeProviderBase

Apparently, the title takes the value of ImageUrl In my DynamicNodeProviderBase class configure both the Title and the ImageUrl DynamicNodeProviderBase const string keyFormated = "Subsidiary_{0}"; // Create a node for each subsidiary foreach (var…
ridermansb
  • 10,779
  • 24
  • 115
  • 226
1
vote
1 answer

How to Programmatically modify generate Sitemap in ASP.Net C#

I am working on a multilingual Dynamic Website, I need to generate sitemap (Breadcrumb) navigation for each pages and i have done my research & worked of few example for last two days unfortunately i am not able programmatically generate site…
Learning
  • 19,469
  • 39
  • 180
  • 373
1
vote
1 answer

How to access (PortalSiteMapNode) RootNode outside the SiteMapProvider?

A very simple question for experienced sharepoint developers I think. Inside a PortalSiteMapProvider I can access the RootNode this way: (PortalSiteMapNode) RootNode My Question is, how can I access this node from other places, without a reference…
LMW-HH
  • 1,193
  • 2
  • 15
  • 31
1
vote
1 answer

Custom navigationprovider in sharepoint - how to generate the navigation items from a list?

thank you for reading my question. Following situation: -A sharepoint list, based on a custom content type. The content type is nothing more than a folder with some extra properties (like url, targetpage). -The folder content types and items…
LMW-HH
  • 1,193
  • 2
  • 15
  • 31
1
vote
1 answer

Setting the page's title and sitemap node to the same text with ASP.NET MVC Sitemap Provider

I'm using ASP.NET MVC 3 and ASP.NET MVC Sitemap Provider. I would like to set the view's title and the sitemap node to the same text. How would I do this? Where would it be done and are there any samples? So if I have the following link…