SiteMapPath and ASP.Net Web Forms Routing

  • Thread starter Thread starter Stuart Ferguson
  • Start date Start date
S

Stuart Ferguson

I am writing my fisrt application using Web Forms routing and a Custom
Sitemap provider using a database back end. When dropping the sitemap
provider control on my master page it is not displaying the site
breadcrumb as expected.

Does anybody know of any known issues with this setup and if yes how to
work around them?

Thanks in Advance

Stuart Ferguson
 
I am writing my fisrt application using Web Forms routing and a Custom
Sitemap provider using a database back end. When dropping the sitemap
provider control on my master page it is not displaying the site
breadcrumb as expected.

Does anybody know of any known issues with this setup and if yes how
to work around them?

I have not played with this control yet with routing, but my question is
this:

Are the URLs routed URLs in the sitemap?

The way the breadcrumb works is it gets the URL of the page being served
and then compares to the sitemap to create a breadcrumb.

If they are the routes and not the pages, then the disconnect most
likely comes from the page being served seen as ASPX while the route is
/products/1.

If this is the case, then the most probable solution is a custom site
map provider that maps routes to the actual pages.

Once again, I have not played with this yet, so these are general
suggestions. if you solve it, post a follow up or blog it and then
follow up, as this will be useful for others.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top