Creating a basic .sitemap file for localization : Web.sitemap « Sitemap « ASP.Net






Creating a basic .sitemap file for localization

 
<?xml version="1.0" encoding="utf-8" ?>
    
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" 
  enableLocalization="true">
  <siteMapNode url="Default.aspx" resourceKey="Home">
         <siteMapNode url="News.aspx" resourceKey="News">
                <siteMapNode url="News.aspx?cat=us" resourceKey="NewsUS" />
                <siteMapNode url="News.aspx?cat=world" resourceKey="NewsWorld" />
                <siteMapNode url="News.aspx?cat=tech" resourceKey="NewsTech" />
                <siteMapNode url="News.aspx?cat=sport" resourceKey="NewsSport" />
         </siteMapNode>
  </siteMapNode>
</siteMap>

 








Related examples in the same category

1.An example of a Web.sitemap file
2.Using the Web.sitemap file with a SiteMapPath server control
3.Changing the PathSeparator value
4.Adding style to the PathSeparator property
5.Using an image as the separator
6.Use different site maps as well as the ability to choose a site map
7.Display Levels
8.TreeView ImageSets
9.Set the dispay levels in a Menu control
10.SiteMapNode
11.BulletedList SiteMapDataSource Consumer