The SiteMapPath
control uses the Web.sitemap
file by default. Also, place the sitemap file in the root directory of the website and the URL attributes should be relative to the root directory.
Also the page you are trying to view must be included in the sitemap file else NO breadcrumb will show up on this page.
EDIT::
Make sure you include the SiteMapPath
control on master page, so that it will be available for all your pages from Page1.apsx
to Page13.aspx
( In case they all use a master file ), else you should place the SiteMapPath control individually on every page where you need to display the breadcrumb.
Also you mentioned your sitemap file as breadcrumb.sitemap
, just make sure it should be Web.sitemap. If it is already Web.sitemap, leave it.
Just tried your code and breadcrumb is displayed properly.[ Top left corner ]. In my case the SiteMapPath control was placed on master file.