title: OnSelectedNodeChanged event in asp.net treeview doesn't work
body: <p>Here is my code in <code>.aspx</code> ,</p>
  
  <pre><code> &lt;asp:TreeView ID="TreeView1" runat="server"
   OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"
   ImageSet="Arrows" &gt;
  &lt;/asp:TreeView&gt;
  &lt;asp:TextBox runat="server" ID="selectedNode"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>In my <code>.cs</code> file ,</p>
  
  <pre><code> protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
  {
      selectedNode.Text = TreeView1.SelectedNode.Value;
  }
  </code></pre>
  
  <p>But , <code>OnSelectedNodeChanged</code> event doesn't work , I want to know why .</p>
  
  <p>I bind the nodes dynamically . I used this <a href="https://stackoverflow.com/questions/16139479/how-to-add-root-node-in-tree-view-dynamically-using-asp-net/16139564?noredirect=1#comment23057324_16139564">link</a> .</p>