How to Make sitemappath use the sitemap file with the specified path name
By default, the sitemappath control uses Web. sitemap in the root directory as the data source, but this can be changed. You just need to modify the settings.
1. Add the following in the web. config file:
<Sitemap>
<Providers>
<Add sitemapfile = "~ /App_data/job. sitemap "name =" jobxmlsitemapprovider"
Type = "system. Web. xmlsitemapprovider, system. Web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a"/>
</Providers>
</Sitemap>
2. Use the stemappath control to specify the value of sitemapprovider. For example:
<asp:SiteMapPath ID=
"jobSiteMapPath"
runat=
"server"
PathSeparator=
" → "
SiteMapProvider=
"JobXmlSiteMapProvider"
></asp:SiteMapPath>
By default, the sitemappath control uses Web. sitemap in the root directory as the data source, but this can be changed. You just need to modify the settings.
1. Add the following in the web. config file:
<Sitemap>
<Providers>
<Add sitemapfile = "~ /App_data/job. sitemap "name =" jobxmlsitemapprovider"
Type = "system. Web. xmlsitemapprovider, system. Web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a"/>
</Providers>
</Sitemap>
2. Use the stemappath control to specify the value of sitemapprovider. For example:
<asp:SiteMapPath ID=
"jobSiteMapPath"
runat=
"server"
PathSeparator=
" → "
SiteMapProvider=
"JobXmlSiteMapProvider"
></asp:SiteMapPath>