title: How to bind data in asp.net c# treeview control
body: <p>I have never used treeview control in asp.net but now I need to bind data to it. My stored procedure from sql server is returning the the values as below. I m using c# </p>
  
  <pre><code>TermID  ParentID  Name
  2021    0          A. Geographic locations
  3602    2021       Oceania
  3604    3602       Australasia
  3621    3604       New Zealand
  3619    3604       Pacific Islands
  3585    3619       Polynesia
  3592    3585       Samoa
  3594    3592       American Samoa
  </code></pre>
  
  <p>Each Term has parentID and any TermID with ParentID=0 is the root node. How can we bind this data to treeview. I will appreciate any advise or examples</p>