[Reprint] How to use multiple sitemap files in ASP. NET 2.0 [using multiple sitemap files in ASP. NET 2.0-English]

Source: Internet
Author: User

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

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.