<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PopulateOnDemand.aspx.cs" Inherits="PopulateOnDemand" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
   <title>TreeView Populate On Demand</title>
   <link href="chapterStyles.css" type="text/css" rel="stylesheet"/>
   <style type="text/css">
      h2 { background-color: #A6B4DB; width: 300px; padding: 4px; border: solid 1pt #A6B4DB;}
      .tree { width: 300px; padding: 4px; border: solid 1pt #A6B4DB;}
   </style>
</head>
<body>
   <form id="form1" runat="server">
   <div id="container">
      <h1>TreeView Populate On Demand</h1>
      <p>This example illustrates how to populate tree nodes on demand.</p>

      <h2>Product Nodes Filled On Demand</h2>      
      <asp:TreeView ID="treeMain" runat="server" CssClass="tree" 
          OnTreeNodePopulate="treeMain_TreeNodePopulate" ExpandDepth="1" EnableClientScript="true" PopulateNodesFromClient="true"
         >
         
        
      </asp:TreeView>


   </div>
   </form>
</body>
</html>
