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
0
votes
1 answer

Configuring ASP.NET Site Map URL Domain

I have a site map configured as such:
Anton
  • 1,387
  • 2
  • 17
  • 30
0
votes
1 answer

Is it possible to block a page from opening using securityTrimmingEnabled=true

I have custom SiteMapProvider and RoleProvider that works together properly: IsAccessibleToUser returns false if current user's role isn't mentioned in SiteMapNode.Roles for page requested. So breadcrumbs or menu doesn't show an item. But user still…
0
votes
1 answer

Return different siteMapNodes for different roles

I'm using my own SiteMapProvider which is just inherited and little bit rewritten System.Web.XmlSiteMapProvider. I want to return different siteMapNode for clients and for managers. Or maybe the same but with different Title property. Is it…
abatishchev
  • 98,240
  • 88
  • 296
  • 433
0
votes
1 answer

MVCSitemap Issue

I am facing a strange issue with MVC Sitemap. At present I had maximum of of 3 levels of sitemap link which may change in future. The problem is the middle level sitemap link is not working (clicking on the link throwing error - Http 403.1…
Jobins
  • 3
  • 2
0
votes
1 answer

query string parameters for sitemap

I'm using VWD 2010, ASP.NET with C#. I found a pointer for how to do this in another SO post. Unfortunately, I can't get it working. The sample code it points to is…
elbillaf
  • 1,952
  • 10
  • 37
  • 73
0
votes
1 answer

Show/Hide custom menu items as based on Roles/Web.sitemap file

I have a custom menu, which leverages the standard asp.net sitemap. It works well but some of my pages are dynamically generated by URL rewriter, so they don't sit in the sitemap XML file. At the moment I rolled a custom solution which shows/hides…
Dkong
  • 2,748
  • 10
  • 54
  • 73
0
votes
1 answer

Can not change DataSourceID in aspmenu

I'm sorry for my english. I'm trying to put a custom provider, but when I write in my SiteMapDataSource provider, nothing changes. When I change his ID and correspondingly changing its attributes in DataSourceID page gives an error that it is not.…
0
votes
1 answer

Mixing sitemap and dynamic (database) pages?

i have a static .sitemap file for my site. I want to add 5 subcategories for each maincategory (@Products) so they will appear in my menu (menu is custom helper which works, i just need to add to the Sitemap.Provider some pages at runtime...) Is…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
0
votes
1 answer

MVC Sitemap show only parent nodes

I want show only my parent nodes in my View. This is my sitemap:
0
votes
1 answer

MVC SiteMapProvider not loading the nodes when hosted in IIS but works in VS Dev Server

I have added the MVC SiteMapProvider to the ASP.NET MVC4 App through nuget Added the sitemap menu & sitemap path html helper in the layout. When running the web application in Visual Studio Development Server i got the sitemap menu and sitemap path…
PradeepN
  • 123
  • 8
0
votes
1 answer

How to dynamically change the title of only one node

In a node, the title should be the name of the user logged into the system. In addition I would like the result to be cached, because to retrieve the username I have to go to the database since the username is the email. How to modify the title…
ridermansb
  • 10,779
  • 24
  • 115
  • 226
0
votes
1 answer

SecurityTrimming in asp.net SiteMap

i am facing strange issue in my site, i have menu, which i am handling with asp:menu and SiteMap, now i want to restrict menu's based on roles, so i am using securityTrimmingEnable="true" in web.config, now my problem is i have some menu items which…
Abbas
  • 4,948
  • 31
  • 95
  • 161
0
votes
1 answer

ASP.NET Web.Sitemap - one role not being displayed in nav menu while others are

I'm working on an ASP.NET C# application that has three roles defined for various user levels within the application: "User", "Manager", and "Admin". I've completed most of the User and Admin stuff, and just added a page to the Manager section. But…
timbck2
  • 1,036
  • 3
  • 15
  • 36
0
votes
1 answer

Convert a dataset (or a custom collection) into a sitemap

I have generic collection list, which has certain properties.... its a heirchachical collection, that I now I want to make into a sitemap file.... i.e., the standard one that MSDN states.... so the output will be something like this:…
M.R.
  • 4,737
  • 3
  • 37
  • 81
0
votes
1 answer

Custom SharePoint 2007 Subsite Navigation Control

I've been asked to create an asp.net UserControl that allows custom navigation between subsites of a SharePoint 2007 website. The sites mimics a school structure with semesters that have different groups of classes. Here is a simplified version of…
xr280xr
  • 12,621
  • 7
  • 81
  • 125