treeview with more than one parent
<p>im using treeview in asp.net</p>

<p>treeview like</p>

<pre><code>*parent
   @child1
     .child2
*parent
   .child
</code></pre>

<p>if i click child2 after postback the alignment which is in above should not change</p>

<p>but parent1 should be collapsed</p>

<p>if i click child  then parent node should be collapsed</p>

<p>im using thi following code</p>

<pre><code>  protected void Page_Load(object sender, EventArgs e)
    {
         if (Session["tvExpandNode1"] != null)
        {
            TreeView1.FindNode(Session["tvExpandNode1"].ToString()).Expand();

        }
    }

  protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
           if (TreeView1.SelectedNode.Expanded == true)
                {
                    Session["tvExpandNode1"] = TreeView1.SelectedNode.Parent.Parent.Value;
                    if (strOpenpage == "Report.aspx")
                    {
                        OpenNewWindow(strOpenpage);
                    }
                    else
                    {
                        Response.Redirect(strOpenpage, false);
                    }
                }   
    } 
</code></pre>

<p>its just not working properly...pls provide ur valuable infromation........</p>
