Student Reviews
( 5 Of 5 )
1 review
Video of Part 161 Binding asp net treeview control to web sitemap file using sitemapdatasource control in ASP.net course by kudvenkat channel, video No. 161 free certified online
Text version of the video
http://csharp-video-tutorials.blogspot.com/2013/10/part-161-binding-treeview-control-to.html
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.
https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation1
Slides
http://csharp-video-tutorials.blogspot.com/2014/10/binding-aspnet-treeview-control-to.html
All ASP .NET Text Articles
http://csharp-video-tutorials.blogspot.com/p/free-aspnet-video-tutorial.html
All ASP .NET Slides
http://csharp-video-tutorials.blogspot.com/p/aspnet-slides.html
ASP.NET Playlist
https://www.youtube.com/playlist?listPL4cyC4G0M1RQcB4IYS_zwkyBwMyx5AnDM
All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenkat/playlists?view1&sortdd
All Dot Net and SQL Server Tutorials in Arabic
https://www.youtube.com/c/KudvenkatArabic/playlists
This is continuation to Part 160. Please watch Part 160, before proceeding. In Part 158, we discussed binding menu control to web.sitemap file using sitemapdatasource control. Binding treeview control to web.sitemap file is similar.
Here are the steps to achieve this.
1. Add web.sitemap file.
2. Drag and drop "SiteMapDataSource" control onto the webform. By default, a SiteMapDataSource control reads data automatically from web.sitemap file.
3. Finally drag and drop TreeView control onto the webform and set DataSourceID attribute, to the ID of the SiteMapDataSource control created in Step 2.
That's it. Run the application and notice that, the treeview control is bound to web.sitemap file. One problem here is that, the Root node is also displayed.
To hide the Root node in the treeview control, set ShowStartingNode attribute of the SiteMapDataSource control to false.
To open the target page in a new window set Target attribute of TreeView control to _blank.