ASP.NET
  Home arrow ASP.NET arrow TreeView Navigation in ASP.Net 2.0
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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? 
ASP.NET

TreeView Navigation in ASP.Net 2.0
By: Caroline Bogart
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 25
    2006-06-06

    Table of Contents:
  • TreeView Navigation in ASP.Net 2.0
  • TreeView Declarative Binding
  • Declaring the TreeView Nodes
  • Treeview DataSource Binding
  • Binding to a SiteMapDataSource

  • 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


    TreeView Navigation in ASP.Net 2.0


    (Page 1 of 5 )

    If you want to create a menu organized by hierarchy in ASP.Net 2.0, you can use a TreeView Navigation control, whose menu you can populate three different ways. This tutorial explains how to populate the menu using two of those ways.

    Introduction

    ASP.Net 2.0 offers a TreeView Navigation control that allows you to display a hierarchical menu. The TreeView’s menu items can be populated:

    • declaratively
    • via an XML datasource
    • through a database datasource.

    In this tutorial we’ll explore populating a TreeView control declaratively and through an XML datasource. The code in this tutorial runs in an ASP.Net web site project. Our goal is to create the menu in figure 1:

    Figure 1 A TreeView Control at Runtime

    More ASP.NET Articles
    More By Caroline Bogart


       · Hi all, I'm Caroline, the author of this TreeView article. Did the article help?...
       · Thanks for the article, this helps, I have following questions:1. When I used...
       · >>>Thanks for the article, this helps, I have following questions:You're very...
       · Hi Caroline, yes your article was very helpful, especially the getting rid of ROOT...
       · I'm not completely sure I follow because if I read you write you could concatenate...
       · I have been trying to build the treeview control dynamically, not binding it to a...
     

    ASP.NET ARTICLES

    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...





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