Search Forum
(53671 Postings)
Search Site/Articles

Archived Articles
712 Articles

C# Books
C# Consultants
What Is C#?
Download Compiler
Code Archive
Archived Articles
Advertise
Contribute
C# Jobs
Beginners Tutorial
C# Contractors
C# Consulting
Links
C# Manual
Contact Us
Legal

GoDiagram for .NET from Northwoods Software www.nwoods.com


 
Printable Version

Using TreeView in ASP.NET with XML
By Prashant Brall

The Treeview control is not a part of regular ASP.NET, and are Inherited from Microsoft.Web.UI.WebControls. Microsoft Web Controls are easy to use and can provide real rich GUI to your web pages in no time.You can download these controls from

http://msdn.microsoft.com/downloads/samples/internet/asp_dot_net_ServerControls/webcontrols/

After you download run the setup program to install the controls on your machine.

This samples shows you a simpler way to bind a Treeview control to an external XML file,however there are lot of advance feature such as events and ImageUrl of a treeview control which can make you application really user friendly.

Other feature of application development is that you can configure IIS for SQL server to output SQL queries in XML.This can be done using "configure SQL XML support in IIS" option from SQL Server Tab.With this you can configure the server to output the data in XML format using "select * from for XML AUTO" to generate the external XMl file from database and directly bind the xml file to treenode..

Okay enough of theory following are the aspx page and the xml file. Copy both the files in your virtual and load the page..

Download 446.zip

Happy dotnetting !!!