October 2010
Intermediate to advanced
1920 pages
73h 55m
English
Because an XmlDataSource control returns hierarchical data, you can bind a TreeView directly to an XmlDataSource. For example, imagine that you need to display the XML document contained in Listing 22.22.
Listing 22.22. Movies.xml

The page in Listing 22.23 illustrates how you can display the contents of this XML document with a TreeView control.
Listing 22.23. TreeViewXml.aspx

The Movies.xml document in Listing 22.22 is extremely simple. The elements do not include any attributes. You can display more complicated XML documents ...
Read now
Unlock full access