title: Strange javascript error in ASP.NET TreeView control
body: <p>I’m using Treeview Control (ASP.NET 2.0) in a web control. The funny thing is, that everything is working fine : expanding, collapse, selecting a node etc. ,but after every click firebug shows an error : TreeView_SelectNode is not defined [Break on this error] HelpFile.aspx (line 1)<br /><br />
  The error comes up every time I'm selecting a node. I've been going through System.Web.UI.WebControls assembly and found two places, where TreeView_SelectNode is beeing used.<br /></p>
  
  <pre><code>if ((((this._owner.Page != null) &amp;&amp; this._owner.Page.SupportsStyleSheets) &amp;&amp; (this.SelectAction == TreeNodeSelectAction.Select)) || (this.SelectAction == TreeNodeSelectAction.SelectExpand))
  {
    firstScript = Util.MergeScript(firstScript, "TreeView_SelectNode(" + this._owner.ClientDataObjectID + ", this,'" + this.SelectID + "');");
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if (this._owner.RenderClientScript)
  {
    list.Add("onclick");
    list.Add("TreeView_SelectNode(" + this._owner.ClientDataObjectID + ", this,'" + this.SelectID + "');");
  }
  </code></pre>
  
  <p>Anybody has a clue, or ideas what else to do, and where else to look ?</p>