Text version of the video
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
All ASP .NET Text Articles
All ASP .NET Slides
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic
In this video, we will discuss binding asp.net TreeView control to an xml file using xmldatasource control. This is continuation to Part 159, so please watch Part 159 before proceeding.
1. Add an XML file and name it TreeViewData.xml.
2. Drag and drop an XmlDataSource control on the webform. Set XPath and DataFile attributes. DataFile attribute should point to the XML file that we added in step 1.
3. Drag and drop a TreeView control and set DataSourceID attribute to the xmldatasource control we created in step 2. Also, set DataBindings.