My project has some "MyObject" and the MyObject have a property of List<MyObject>. I would like to build a simple HTML nested unordered list to display the hierarchy for any specified MyObject. A few concerns:
1) The number of children an total depth are unknown.
2) I would like to be able to limit the depth to X children.
3) The list items need to be able to contain any valid HTML and preferably asp.net controls e.g. a LinkButton
What is the best way to handle this? TreeViews? Nested ListViews? Sample code or a link to a tutorial would be much appreciated.