asp:treeview expand when page visited
<p>I have a asp:treeview in my website where the selected node does not expand when the node the page links to is visited. You can see the problem here: </p>

<p><a href="http://www.meronymy.com/SPARQL-Database-Server/Documentation/architecture/query-processor/query-parser.aspx" rel="nofollow">http://www.meronymy.com/SPARQL-Database-Server/Documentation/architecture/query-processor/query-parser.aspx</a></p>

<p>As you can see, the "Query parser" node is not shown in the menu even though the page that it links to is open, if you expand its parent, "Query processor", it is shown.</p>

<p>I only want the first level being expanded by default, the other levels should be collapsed unless a page that a subnode links to is visited.</p>

<p>What am I doing wrong?</p>

<pre><code>    &lt;asp:SiteMapDataSource runat="server" ID="siteMapDataSource" ShowStartingNode="false" /&gt;
    &lt;asp:TreeView ID="mnuTreeView" SelectedNodeStyle-ForeColor="Black" ExpandDepth="1" DataSourceID="siteMapDataSource" 
        CssClass="treeview" ShowLines="true" ShowCheckBoxes="None" ShowExpandCollapse="True" SkipLinkText="" Runat="server"&gt;

        &lt;LevelStyles&gt;
            &lt;asp:TreeNodeStyle ChildNodesPadding="10" 
                Font-Size="1.2em"/&gt;
            &lt;asp:TreeNodeStyle ChildNodesPadding="8" 
                Font-Size="1em"/&gt;
            &lt;asp:TreeNodeStyle ChildNodesPadding="6" 
                Font-Size="0.9em"/&gt;
            &lt;asp:TreeNodeStyle ChildNodesPadding="5" 
                Font-Size="0.8em"/&gt;
        &lt;/LevelStyles&gt;

    &lt;/asp:TreeView&gt;
</code></pre>
