title: asp.net TreeView Expand question
body: <p>hope you help me with I think a simple TreeView Expand problem.</p>
  
  <p>I have a TreeView control in my MasterPage and my default depth is 2 and I see that when I click on the deeper node it keeps expanded.. But when I redirected into another page, the node collapsed.</p>
  
  <p>I have a problem with my code which suppose to keep the node expanded.</p>
  
  <pre>
  TreeNode thisNode = tvCategories.FindNode(Session["SelectedCIDValPath"].ToString());
  if (thisNode != null)
  {
      thisNode.Selected = true;
      thisNode.Expand();
      thisNode.Select();
      thisNode.Expanded = true;
      lbl.Text = "valupath: " + Session["SelectedCIDValPath"].ToString();
  }
  </pre>
  
  <p>as you can see, I tried all the possible properties and methods to keep the deeper node expanded.. but it doesn't work. </p>
  
  <p>Please help me? Thank you so much</p>