Breaking News

Rules that ASP.NET SiteMap follow:

Rule1:SiteMaps Begin with the <SiteMap> Element
Every Web.Sitemap file begins by declaring the <SiteMap> element and ends by closing that element.You will place all the SiteMap Information between the start and end Tags. The xmls attribute tells ASP.NET that the XML File uses the ASP.NET SiteMap Standard.

Rule2:Each Page is Represented by a <SiteMapNode> Element
Every SiteMap defines an organization of Web pages. To insert a page into the sitemap, you need to Add the <siteMapNode> element with some basic information. Namely, you need to supply the Title of the page (which appears in the navigation controls), a description (which you may or may not choose to use), and the URL (the link for the page).You Add these three pieces of information by using three attributes – named title, description, and URL.

Here you will see the CodeView Window having the code. You will Notice here in the code that the URL for each page begins with the “~/” character. The “~/” character represent the root folder of your web application. For example, the URL “~/default.aspx”points to the default.aspx file in the root folder.it is always recommended because it makes sure you always get the right page.
Fig 3.

Rule3: A <SiteMapNode> element can contain other <SiteMapNode> elements
SiteMap does not consist of simple lists of pages,they divide pages into groups. To represent this in a SiteMap file, you place one <SiteMapNode> inside another.

Rule4:Every SiteMap Begins with a Single <SiteMapNode>
A SiteMap must always have a single root node. All other nodes must be contained inside this root-level node.

Rule5: Duplicate URLs are not Allowed
You cannot create two sitemap nodes with the same URL.The URL in the sitemap is not Case-Sensitive.

Check Also

Calendar Server Control

Calendar Server Control The Calendar server control is a rich control that allows you to …