This section contains two code examples. The first code example demonstrates how to use the ImageUrlField property to specify which attribute of an XML element to bind to the ImageUrl property of a TreeNode object to which the TreeNodeBinding object is applied. The second code example provides sample XML data for the first code example. The following code example demonstrates how to use the ImageUrlField property to specify which attribute of an XML element to bind to the ImageUrl property of a TreeNode object to which the TreeNodeBinding object is applied. For this example to work correctly, you must copy the sample XML data, provided after this code example, to a file named Booklist.xml. Visual Basic <%@ Page Language="VB" %> TreeViewBinding Example

TreeViewBinding Example

C# <%@ Page Language="C#" %> TreeViewBinding Example

TreeViewBinding Example

The following code example provides sample XML data for the preceding example.