TreeView Binding Demo - With Dynamically Adjusting the XML via XSLT

This demo shows how to use an XSLT stylesheet to dynamically change a given XML document's format into the format expected by the TreeView control. To fully understand this example, be sure to check out the aspnetbooks.xml file and the aspbooks2treeview.xsl file as well.

  ASP.NET Books
  Teach Yourself Active Server Pages 3.0 in 21 Days
  Designing Active Server Pages
  ASP.NET: Tips, Tutorials, and Code
  ASP Unleashed
  ASP.NET Unleashed
  Creating Data Driven ASP.NET Applications
  ASP.NET Data Web Controls Kick Start
  Programming ASP.NET

Source Code

<form runat="server">
  <ie:TreeView runat="server">
    <ie:TreeNode runat="server" Text="ASP.NET Books" Expanded="True" 
                   TreeNodeXsltSrc="aspbooks2treeview.xsl" />                  

[Return to the article]