TreeView Binding Demo

This demo illustrates how to bind an XML file in the proper format to the TreeView control. Be sure to check out the aspnetbooksTV.xml file to examine its structure.


  ASP.NET Books
  Teach Yourself Active Server Pages 3.0 in 21 Days
  Designing Active Server Pages
  ASP.NET: Tips, Tutorials, and Code
  Programming ASP.NET


Source Code

<form runat="server">
  <ie:TreeView runat="server">
    <ie:TreeNode runat="server" Text="ASP.NET Books" Expanded="True" 
                   TreeNodeSrc="aspnetbooksTV.xml" />                   
  </ie:TreeView>
</form>

[Return to the article]