473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Custom SiteMapProvider.

hello ,

I am implementing a custom site map provider to display the bread crumb
control on all the navigation pages on my site.
My site's navigation possibly consists of hundreds nested of categories
and products, and i don't want to create and store the whole catalog in
the site map.

I think in my case it would be cheaper to just dynamically create the
site map structure relevant to the current request and return the whole
tree..

I have tried to override SiteMapResolve event, but doesn't seem like i
was on the right track, because the mapresolve event fires for just one
node, and i cannot return the whole navigation tree

wondering if someone has faced similar problem, or some possible pointers...

thanks in advance
Jul 30 '06 #1
3 2497
Jeff Prosise has a nice implementation of a SQL Server SiteMap provider in a
recent MSDN Magazine article, which you can find on MSDN Online.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ashish" wrote:
hello ,

I am implementing a custom site map provider to display the bread crumb
control on all the navigation pages on my site.
My site's navigation possibly consists of hundreds nested of categories
and products, and i don't want to create and store the whole catalog in
the site map.

I think in my case it would be cheaper to just dynamically create the
site map structure relevant to the current request and return the whole
tree..

I have tried to override SiteMapResolve event, but doesn't seem like i
was on the right track, because the mapresolve event fires for just one
node, and i cannot return the whole navigation tree

wondering if someone has faced similar problem, or some possible pointers...

thanks in advance
Jul 30 '06 #2
Peter,
i went through the article by jeff Prosise, but it seems the whole site
map from the database would be kept in memory for the life of application.
i want to avoid this scenario, because the site map can become very
large, and it would be cheaper for me to query the data on every request
, rather than build it all up at once.

any other ideas ?
thanks
Peter Bromberg [C# MVP] wrote:
Jeff Prosise has a nice implementation of a SQL Server SiteMap provider in a
recent MSDN Magazine article, which you can find on MSDN Online.
Peter
Jul 31 '06 #3
Because our top-level menu changes infrequently, we combined
XmlSiteMapProvider with a custom provider that loads from database the links
for an attribute "Category" param specified in config file for each instance
of custom provider.

Our custom provider does not inherit from staticSiteMapProvider, instead the
data is cached using ASP.NET caching based on user id.

APB

"ashish" wrote:
Peter,
i went through the article by jeff Prosise, but it seems the whole site
map from the database would be kept in memory for the life of application.
i want to avoid this scenario, because the site map can become very
large, and it would be cheaper for me to query the data on every request
, rather than build it all up at once.

any other ideas ?
thanks
Peter Bromberg [C# MVP] wrote:
Jeff Prosise has a nice implementation of a SQL Server SiteMap provider in a
recent MSDN Magazine article, which you can find on MSDN Online.
Peter
Oct 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jonathan.eves | last post by:
Hi I am having a hard time with localization of the sitemap. I have created a custom SiteMapProvider which inherits from StaticSiteMapProvider. For which everything works fine. The next...
0
by: Thomas Bandt | last post by:
Hi, I wrote my own SiteMapProvider which fetches the data from a Sql Database (Navigation hierarchy). But this data (categories) could contain absolute external Urls (like http://google.com/)...
2
by: dhurwitz | last post by:
Hi, I have written a custom SiteMapProvider to retrieve site map data from a SQL Server database table. It works fine when used as the data source for a Menu control, so I am confident that all...
0
by: ashish | last post by:
hello all, I am trying to create a custom site map provider and since my site map is very huge, I am loading the required nodes when the CurrentNode property is called.. I am wondering if...
3
by: Adrian Sharp | last post by:
I've got a pretty basic sitemap setup, but am getting a runtime error: "The SiteMapProvider 'MySiteMap' cannot be found." This occurs only when I access my website under IIS 5.1. When I run my...
1
by: shapper | last post by:
Hello, How to make a SiteMapDataSource to use a SiteMapProvider defined in Web.Config? I think I should use something like: MySiteMapDataSource.Provider = ... However I don't know what to...
0
by: shapper | last post by:
Hello, I need to create a custom SiteMapProvider. I searched in Google for examples but I am still completly lost. The custom SiteMapProvider I need to create is exactly the same as the...
0
by: Alex Brown | last post by:
Is it a problem to attach Non-static site map providers under one that inherits from StaticSiteMapProvider ? We are implementing a custom site map provider for a website that is being converted...
3
by: Anders | last post by:
Hello, i have created a custom sitemap datasource. The sitemap gets all pages from a collection from a CMS system (not directly from a database). I have declared my sitemap provider as default in...
2
by: Steve Harclerode | last post by:
Hi, I have implemented a working SiteMapProvider as shown on an msdn page: http://msdn.microsoft.com/en-us/library/ms178434(VS.80).aspx My question is: Can I make the TreeView that uses a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.