[ Download Code ]
This article will present how you can build a working TreeView control in less than two minutes, utilizing an XML file as its data source. As well, I will also cover a database data-driven approach in lieu of using an XML file. To comprehend this approach, you should be familiar with PL/SQL, SQL, Visual Studio 2005 Beta 2, and XML. I for one have felt the pain of building a TreeView in the past utilizing Active Server Pages and this feature is a welcomed addition to the Visual Studio .NET IDE, in my humble opinion.
Requirements
- Oracle 9i or better database instance
- ODP.NET (The Oracle Data Provider for .NET)
- PL/SQL Developer, Toad, SQLPlus or you favorite text editor
- .NET Beta 2
- Visual Studio .NET 2005 Beta 2
Goal
The end result that you should take away from this article is how to build a TreeView control within Visual Studio 2005 Beta 2 without writing a single line of code, by utilizing an XML file as the DataSource and the TreeView GUI properties. As well you should comprehend how to use an Oracle database and the ODP.NET provider as an alternative to the XML DataSource.