Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 02, 2010 03:06 PM by alparody
Jul 15, 2008 02:37 PM|LINK
Hello everybody there.
i am new in ASP.NET development.. only 3 weeks ago i have started working.. could u please help me in the way:
How to bind a Sql Data Source to a Tree View.. Please send the code in VB.Net ...
i shall be thankful to u..
Jul 15, 2008 02:45 PM|LINK
It is not possible to bind a TreeView to a SqlDataSource, but you can use an XmlDataSource. The TreeView is designed to render data in a hierarchical format.
You can find a good sample in the ASP.NET QuickStarts:
You can take XML-formatted data, feed that into an XmlDataSource, and bind the TreeView to the XmlDataSource.
Jul 17, 2008 05:56 AM|LINK
And you also can refer this link:
http://aspalliance.com/822, which talks how to populate a menu from the database, and convert the data queried from the database into
xml, and then make the menu bind to the xml. By using this solutionm, you only need to replace the Menu/MenuItem with the Treeview/TreeNode.
Mar 02, 2010 03:06 PM|LINK
Based on many articals and tries i made this control wich takes the ID and Parent ID and Text Fields from the Table you spacify and a connection string to the server and view your data in a tree view.
i hope it helps you.
just add it to your Bin Folder and choose it as an item into your tool box
this a small description for the control http://csharpplayers.blogspot.com/
this the link to download it BindableTreeView.dll
.net 2.0 navigation controls tree view......
ASP 2.0 Treeview OnTreeNodePopulate Load Page_load
.net framework 3.5
ASP Treeview progamming
.net asp .aspx vb c#