Treeview not working with sitemap
<p>i've created a sitemap with my default.aspx page, coded it accordingly, then added a sitemapdatasource control as well as a treeview control to the page. I then altered out the code for the treeview by adding 'datasourceID' for it to link to the sitemapdatasource. i still however get an error when viewing the page in a browser, not knowing what else to do. Help would be appreciated. Thank you.</p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;


        &lt;asp:Panel ID="Panel1" runat="server" BackColor="#DFDFFF" Font-Names="Arial" 
            Font-Size="Medium" Height="557px" Width="913px"&gt;
            &lt;asp:Panel ID="Panel2" runat="server" Width="223px" BackColor="#3333CC" 
                ForeColor="White" 
                style="top: 58px; left: 10px; position: absolute; height: 437px; margin-top: 70px; text-align: center;"&gt;
                &lt;asp:Panel ID="Panel3" runat="server" BackColor="#003399" ForeColor="White" 
                    style="margin-left: 259px; top: -109px; left: -258px; position: absolute; width: 906px; height: 105px;"&gt;
                    &lt;asp:Label ID="Label1" runat="server" Font-Size="XX-Large" 
                        style="z-index: 1; left: 293px; top: 33px; position: absolute; width: 345px; text-align: center;" 
                        Text="Web Page Header"&gt;&lt;/asp:Label&gt;
                &lt;/asp:Panel&gt;
                &lt;asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="White" 
                    style="z-index: 1; left: 56px; top: 7px; position: absolute; width: 99px" 
                    Text="Menu"&gt;&lt;/asp:Label&gt;
                &lt;br /&gt;
                &lt;br /&gt;

                &lt;asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /&gt;
                &lt;asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1"&gt;
                &lt;/asp:TreeView&gt;

            &lt;/asp:Panel&gt;
        &lt;/asp:Panel&gt;


    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Code for sitemap:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" &gt;
    &lt;siteMapNode url="Default.aspx" title="Home"  description="this is the home page"&gt;
        &lt;siteMapNode url="Aboutus.aspx" title="About us"  description="this is the contact page" /&gt;
        &lt;siteMapNode url="Contactus.aspx" title="Contact Us"  description="this is the whatever page" /&gt;
        &lt;siteMapNode url="History.aspx" title="Our History"  description="this is the whatever page" /&gt;
    &lt;/siteMapNode&gt;
&lt;/siteMap&gt;
</code></pre>
