Professional in C# and Visual Basic Part 73. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 14 Site Navigation Listing 14-8 xml version encoding utf-8 Hardware Item Category Motherboards Option Choice Asus Option Choice Abit Item Item Category Memory Option Choice 128mb Option Choice 256mb Option Choice 512mb Item Item Category HardDrives Option Choice 40GB Option Choice 80GB Option Choice 100GB Item Item Category Drives Option Choice CD Option Choice DVD Option Choice DVD Burner Item Hardware As you can see this list is not meant to be used for site navigation purposes but instead for allowing the end user to make a selection from a hierarchical list of options. This XML file is divided into four categories of available options Motherboards Memory HardDrives and Drives. To bind your TreeView control to this XML file use an XmlDataSource control that specifies the location of the XML file you are going to use. Then within the TreeView control itself use the asp TreeNodeBinding element to specify which elements to bind in the XML file to populate the nodes of the TreeView control. This is illustrated in Listing 14-9. Listing 14-9 Binding a TreeView control to the file @ Page Language VB html xmlns http 1999 xhtml head runat server title Latest Hardware title head body form id form1 runat server asp TreeView ID TreeView1 runat server DataSourceID XmlDataSource1 DataBindings asp TreeNodeBinding DataMember Hardware Text Computer Hardware asp TreeNodeBinding DataMember Item TextField Category Continued 677 Chapter 14 Site Navigation asp TreeNodeBinding DataMember Option TextField Choice DataBindings asp TreeView asp XmlDataSource ID XmlDataSource1 runat server DataFile asp XmlDataSource form body html The first item to look at is the asp XmlDataSource control. It is just as simple as the previous asp SiteMapDataSource control but it points at the file using the DataFile property. The next step is to create a TreeView control that binds to this particular XML file. You can bind a default