title: TreeView — selected node style doesn't appears to selected node
body: <p>My code is :</p>
  
  <pre><code>            &lt;asp:TreeView ID="TreeViewCategories" runat="server" ExpandDepth="0" Style="min-height: 200px;
                  max-height: 500px;" LineImagesFolder="~/TreeLineImages" NodeIndent="0" LeafNodeStyle-CssClass="LeafNodesStyle"
                  CssClass="TreeView" NodeStyle-CssClass="NodeStyle" ParentNodeStyle-CssClass="ParentNodeStyle"
                  RootNodeStyle-CssClass="RootNodeStyle" SelectedNodeStyle-CssClass="SelectedNodeStyle"
                  LeafNodeStyle-Width="100%" NodeStyle-Width="100%" ParentNodeStyle-Width="100%"
                  RootNodeStyle-Width="100%" Font-Size="12pt"&gt;
                  &lt;Nodes&gt;
                      &lt;asp:TreeNode Text="All Items" SelectAction="Expand" PopulateOnDemand="True" Value="All Items" /&gt;
                  &lt;/Nodes&gt;
              &lt;/asp:TreeView&gt;
  </code></pre>
  
  <p>css</p>
  
  <pre><code>.TreeView  
  {
      border-bottom:1px dotted #B2B2B2 !important;
  }
  
  .TreeView div
  {
      margin-left:5px;
  }
  
  .TreeView table
  {
      border-top:1px dotted #B2B2B2 !important;
  }
  
  .TreeView div table
  {
      border-bottom:none !important;
      border-top:none !important;
  }
  
  .TreeView table td
  {
      padding:2px 0;
  }
  
  .LeafNodesStyle 
  {
  
  }
  
  .RootNodeStyle 
  {
  
  }
  
  /* ALL ELEMENTS */
  
  .NodeStyle 
  {
  
  }
  
  .ParentNodeStyle 
  {
      /*background:yellow;*/
  }
  
  .SelectedNodeStyle { font-weight: bold; color:#6799D1; display:block; padding:2px 0 2px 3px; }
  </code></pre>
  
  <p>so I see (with firebug) for my selected node appears Visited style , node style , leaf style but not Selected node style :(</p>
  
  <p>How to fix this HTML/CSS/ASP to make selected node Bold and Blue for example ?</p>
  
  <p>Thank you.</p>
  
  <p>added : adding nodes like here :</p>
  
  <pre><code>            foreach(c : Category in rootCategories)
              {
                  mutable newNode : TreeNode = TreeNode(c.Title, c.Id);
                  newNode.SelectAction = TreeNodeSelectAction.SelectExpand;
                  newNode.NavigateUrl = "Items.aspx?catId=" + c.Id.ToString() + "&amp;lvl=0";
  </code></pre>
  
  <p>solved with...</p>
  
  <pre><code>categoryId : string = Request.QueryString["catId"];
  n : TreeNode = findNode(categoryId, TreeViewCategories.Nodes, lvl);
  n.Selected = true;
  </code></pre>