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  
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? 
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 / 27
    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...
       · Could you please explain on the seo aspect of using treeview controls. The code...
       · Hi, This article is best and useful one. Explanations are easy to...
     

    ASP.NET ARTICLES

    - ASP.NET DotNetNuke Installation with Visual ...
    - Using ASP.NET with a MySQL Database
    - Using ASP.NET with an MS Access Database
    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 12 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek