.NET
  Home arrow .NET arrow Web Site Navigation Using a SiteMap
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Web Site Navigation Using a SiteMap
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 7
    2006-11-15

    Table of Contents:
  • Web Site Navigation Using a SiteMap
  • Adding a SiteMap to the site
  • Site Navigation with Menu Control
  • Where should we place the menu control?

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Web Site Navigation Using a SiteMap


    (Page 1 of 4 )

    This article will explain how to implement site navigation using the ASP.NET 2.0 infrastructure consisting of SiteMap, SiteMapDataSource and navigational controls. These pieces can help you to quickly put up an aesthetically pleasing web site.

    The SiteMap Class

    For web site navigation, ASP.NET 2.0 offers an infrastructure that provides site map information for web page development using navigational controls and SiteMapDataSource controls. The SiteMap class depends therefore on SiteMapProvider and XmlSiteMapProvider (default) classes. The navigation support infrastructure may use all of the following items:

    • Provider classes
    • Web.sitemap file (XML)
    • Navigational Controls
    • SiteMapPath control

    SiteMap is a container of site information (folders and files) represented in an XML format that provides the root node of the site, the SiteMapProvider used, and tracks the provider objects. System.Web.SiteMap inherits from System.Object. The default provider XMLSiteMapProvider works through the Web.sitemap. Besides being useful for site navigation, the sitemap also provides a easy way for search engines to look for pages on the site.

    Create the folder structure for the site

    Here is an example of a site with two folders, ColdFusion61 and MSAccess at the site http://localhost/Tutorials. This was the same site that was created in the tutorial for describing the concept of a Master page in VS2005. The unexpanded folder structure is shown in this picture.

     

    The ColdFusionMX61 contains two web pages, Default.aspx and Coldfusion.aspx. The MSAccess folder contains three web pages, Ado.aspx, DAP.aspx, and Default.aspx. Besides these, each of the folders have their own images directory (now empty) to keep the images related to these folders. This detail is shown in the next picture.

    More .NET Articles
    More By Jayaram Krishnaswamy


       · A good navigation system is essential for user satisfaction. Can you always comeback...
       · My problem is explained in the falowing:Compiler Error Message: CS0716: Cannot...
       · I am sorry you have a problem. Could you kindly explain what you are trying to...
     

    .NET ARTICLES

    - Iron Speed Design v60 Review
    - Binary and XML Serialization
    - Using CrystalReportViewer to Display Crystal...
    - Creating Summary .Net Crystal Reports
    - More on Commands, Input and the WPF
    - Grouping and Aggregating When Querying LINQ ...
    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT