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
9
votes
2 answers

MVC Sitemap Provider -- Maintaining URL parameters in breadcrumb trail

I'm using the MvcSiteMapProvider from http://mvcsitemap.codeplex.com/ to create a breadcrumb trail for my project. I have some URLs that need an ID to be passed to present information for the appropriate user, e.g. http:…
Ben
  • 335
  • 7
  • 14
8
votes
2 answers

How to display as bootstrap navbar

I'm developing an ASP.Net application and I had a Bootstrap navbar setup as follows: Site.Master
7
votes
2 answers

How to add custom xml tags to sitemap.xml using mvcsitemapprovider?

Based on what Google defines in Video sitemaps , There are some xml tags should be added to sitemaps for videos, and it should be like this:
6
votes
5 answers

Sitemap Security Trimming throws SQL error

I am using the default Sitemap provider with secutiry trimming. But, some how, I get: A network-related or instance-specific error occurred while establishing a connection to SQL Server. I'm thinking the sitemap provider is looking for the roles…
robasta
  • 4,621
  • 5
  • 35
  • 53
5
votes
2 answers

How to set up a breadcrumb in an ASP.net page

My folder hierarchy for the pages are (They are all in the same folder): Site.Master Default.aspx find_provider.aspx provider.aspx I have a Web.sitemap page set up:
Si8
  • 9,141
  • 22
  • 109
  • 221
4
votes
1 answer

mvc 3 sitemap provider- multiple paths pointing to same node

i've recently started to use marteenba's sitemap provider, because i couldn't solve a route problem with the other sitemap i had. It's way better than my previous one. My question is: how can i create different breadcrumb trails from pages that go…
AdrianoRR
  • 1,131
  • 1
  • 17
  • 36
4
votes
1 answer

Strange 'MySqlSiteMapProvider' error although 'XmlSiteMapProvider' is being used

I've recently migrated a few web applications from a shared hosting environment to my dedicated server. The server is Windows Server 2012 R2 Standard and all my sites (all slight variations on the same C# web application) work fine however one of…
Daniel
  • 2,167
  • 5
  • 23
  • 44
4
votes
1 answer

Is there a MVC SiteMap Provider that supports ASP.NET MVC 2 Areas feature?

I am looking for a MVC SiteMap provider in which I can specify area as well, along with controller and action. Did anyone use a SiteMap provider that supports MVC 2 Areas ?
Mahesh Velaga
  • 21,633
  • 5
  • 37
  • 59
4
votes
4 answers

Dynamically changing the title of a SiteMapNode

We have a website that uses a bog-standard default sitemap with security trimming as follows:
Christian Hayter
  • 30,581
  • 6
  • 72
  • 99
4
votes
3 answers

MVC SiteMap Hiding a node from menuhelper, but display in sitepathhelper (breadcrumbs)

I'm trying to hide a node from my site menu, but display it in my breadcrumbs I'm following the tutorial here: https://github.com/maartenba/MvcSiteMapProvider/wiki/Advanced-Node-Visibility
Null Reference
  • 11,260
  • 40
  • 107
  • 184
3
votes
2 answers

SiteMap change SiteMapProvider?

I've got a custom menu navigation built from a web.sitemap file, the first line of this would be something like: SiteMapNodeCollection topLevelNodes = SiteMap.RootNode.ChildNodes; This works - it gets all the top level nodes from the web.sitemap…
3
votes
2 answers

How does IPrincipal gets its roles?

I need to get know how SiteMapProvider.IsAccessibleToUser() works. Built-in XmlSiteMapProvider calls HttpContext.User.IsInRole() which uses System.Security.Principal.GenericPrincipal in case of forms authentication. Where does the current user gets…
abatishchev
  • 98,240
  • 88
  • 296
  • 433
3
votes
3 answers

How does XmlSiteMapProvider check user to be in specified role?

I roll my own SiteMapProvider inheriting System.Web.XmlSiteMapProvider. I want to override logic of checking user to be in a role specified in siteMapNode's property roles: How…
3
votes
1 answer

ASP.NET: Custom dynamically populated site map (SiteMapProvider)

I'm trying to write my first very own SiteMapProvider subclass. It is meant to be populated dynamically using a bunch of different database lookups, much like all of the examples I've found on the web. However, there are a whole bunch of things that…
Deniz Dogan
  • 25,711
  • 35
  • 110
  • 162
2
votes
3 answers

WHERE clause in LINQ query seems to be failing

Please forgive any naivety, I'm brand new to the world of C#. Let me know if I've left out helpful information. I'm building a custom SiteMapProvider for the Customer Portal for Dynamics CRM 2011. First I initialize an array: public Adx_webpage[]…
saturdayplace
  • 8,370
  • 8
  • 35
  • 39
1
2 3 4 5 6