Please refer to the Link first:
Http://www.codeproject.com/kb/aspnet/mutliplesitemap.aspx?english --CodeDownload]
Through this, we can easily giveSpecific userCheck the navigation of a specific site.
Reference code:
Sitemap
Xmldatasource getmenudatasource (sitemapmenus menu,
String Servermappath)
{
Xmldatasource objdata = New Xmldatasource ();
Objdata. xpath = " Sitemap/sitemapnode " ;
Switch (Menu)
{
Case Sitemapmenus. Admin:
Objdata. datafile = Servermappath + @" \ App_data \ ADMIN. sitemap " ;
Break ;
Case Sitemapmenus. Secure:
Objdata. datafile = Servermappath + @" \ App_data \ secure. sitemap " ;
Break ;
Case Sitemapmenus. Public:
Objdata. datafile = Servermappath + @" \ App_data \ public. sitemap " ;
Break ;
Default :
Break ;
}
Objdata. databind ();
Return Objdata;
}
If I add this article, why is the humanized navigation of the website intact?
[Original] generate a tree structure based on the dynamic directory of the website and output it with Treeview [Provide source code download with detailed notes]
Http://www.cnblogs.com/OceanChen/archive/2009/02/05/1384816.html