Map more than one sitemap in asp.net webform
How to map more than one sitemap in same asp.net webforms application ?
If there are multiple sitemap in an asp.net application eg: for your administrator you need to show entirely different set of menu compared to normal user .
After adding following entry in web.config will help in using multiple sitemap, you can have 2 different sitemap files named AppDefaultMap.sitemap and AdminSitemap.sitemap (remember by default we can have only one web.sitemap file in our project)
name="AppDefaultSiteMap"
type="System.Web.XmlSiteMapProvider"
siteMapFile="~/Application.sitemap" />
name="AdminSitemap"
type="System.Web.XmlSiteMapProvider"
siteMapFile="~/AdminMenu.sitemap" />
--keep posting.
Comments
Post a Comment