Here Mudassar Ahmed Khan has explained with an example, how to populate TreeView from Database using Recursion in ASP.Net with C# and VB.Net.
First the data from database will be fetched into a DataTable and the Nodes will be added to the TreeView and if the Node has children then the child Nodes will be added through Recursion i.e. by recursively calling the same function.