

A requirement is that the implementation should not be dependant on the hierarchy level in the database.

I'm going to provide a simple example how to display hierarchical data from SQL Server database in the TreeView. TreeView has not just been rewritten it now also includes a major set of new features such as support for client-side populating, on-demand populating, postback events, hyper link navigation, and a lot more. Microsoft has developed it based on feedback which arose from the release of the TreeView control in the open-source IE Web Controls package, targeted at the previous version of ASP.NET. One of the new controls, also my favorite, is the TreeView control. Along with the new Framework, we have a major set of new controls to use and to ease our development work. Now that ASP.NET 2.0 is about to be released to manufacturing, we ASP.NET developers have very interesting times ahead of us.
